/* HR engine screens: lists, record pages, forms, the worker 360 view and the organisation chart. */
.nowrap { white-space: nowrap; }
.hr-tbl td { vertical-align: top; }
.hr-tbl td.nowrap b, .hr-tbl td a b { white-space: nowrap; }
.hr-tick { width: 30px; }
.hr-late td:first-child, .hr-late td.hr-tick + td { box-shadow: inset 3px 0 0 #df4152; }
.hr-statusbar { display: flex; flex-wrap: wrap; gap: 6px; }
.hr-statusbar a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #cbd7e2; border-radius: 999px; background: #fff; color: #1d3650; font-size: 12px; text-decoration: none; }
.hr-statusbar a b { background: #eef3f8; border-radius: 999px; padding: 0 7px; font-size: 11px; }
.hr-statusbar a.on { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.hr-statusbar a.on b { background: rgba(255, 255, 255, .25); color: #fff; }
.hr-statusbar a.t-warn:not(.on) b { background: #fff3d6; color: #8a5a00; }
.hr-statusbar a.t-bad:not(.on) b { background: #fde4e7; color: #a3182a; }
.hr-statusbar a.t-ok:not(.on) b { background: #def5ea; color: #0b6b44; }
.hr-bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid #e0e7ed; background: #fafcfe; }
.hr-bulk select, .hr-bulk input { max-width: 240px; }
.hr-head { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, var(--brand-navy), #0f3767); color: #fff; padding: 14px 16px; border-radius: 4px; min-width: 0; }
.hr-head .hr-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font-size: 20px; flex: none; }
.hr-head .hr-ht { min-width: 0; flex: 1; }
.hr-head .hr-ht b { display: block; font-size: 17px; overflow-wrap: anywhere; }
.hr-head .hr-ht span { font-size: 12.5px; color: #c9d8ea; }
.hr-head .ct-code { background: rgba(255, 255, 255, .14); color: #fff; }
.hr-head .hr-hs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hr-tiles .ct-tile .sub { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.hr-tl li b i { color: var(--brand-primary); margin-right: 2px; }
.hr-tl small { display: block; color: var(--muted); }
.hr-note { margin-top: 4px; padding: 6px 9px; background: #f4f7fa; border-left: 3px solid #cbd7e2; border-radius: 2px; white-space: normal; }
.hr-actions { display: flex; flex-direction: column; gap: 6px; }
.hr-actions .ct-btn { justify-content: flex-start; text-align: left; flex-wrap: wrap; }
.hr-actions .ct-btn .sub { flex-basis: 100%; font-size: 11px; opacity: .75; margin-left: 22px; }
.hr-flow { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px dashed #d5dfe8; display: flex; flex-wrap: wrap; gap: 4px; }
.hr-flow li { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #eef3f8; color: #4a6078; }
.hr-flow li.on { background: var(--brand-primary); color: #fff; font-weight: 700; }
.hr-file { padding: 5px 0; border-bottom: 1px solid #eef2f6; font-size: 12.5px; overflow-wrap: anywhere; }
.hr-upload { margin-top: 10px; }
.hr-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.hr-form .ct-field:has(textarea) { grid-column: 1 / -1; }
.hr-steps { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.hr-steps li { padding: 5px 0; border-bottom: 1px solid #eef2f6; }
.hr-steps li i { color: var(--brand-primary); margin-right: 4px; }
.hr-steps .sub { color: var(--muted); }
/* worker 360 */
.hr-person { display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, var(--brand-navy), #123f75 60%, #0b5cad); color: #fff; padding: 16px 18px; border-radius: 4px; min-width: 0; flex-wrap: wrap; }
.hr-person .av { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary)); display: grid; place-items: center; font-size: 22px; font-weight: 800; flex: none; border: 3px solid rgba(255, 255, 255, .35); }
.hr-person .nm { min-width: 0; flex: 1; }
.hr-person .nm b { font-size: 20px; display: block; overflow-wrap: anywhere; }
.hr-person .nm span { color: #c9d8ea; font-size: 12.5px; }
.hr-person .facts { display: flex; gap: 18px; flex-wrap: wrap; }
.hr-person .facts div { font-size: 11.5px; color: #b9cbe0; }
.hr-person .facts div b { display: block; color: #fff; font-size: 14px; }
.hr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hr-chip { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: #eef3f8; color: #23415f; text-decoration: none; }
.hr-person .hr-chip { background: rgba(255, 255, 255, .14); color: #fff; }
/* organisation chart */
.hr-org { overflow-x: auto; position: relative; padding: 8px 4px 16px; }
.hr-org ul { list-style: none; margin: 0; padding: 18px 0 0; display: flex; justify-content: center; position: relative; }
.hr-org li { position: relative; padding: 18px 6px 0; text-align: center; }
.hr-org li:before, .hr-org li:after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 18px; border-top: 2px solid #c8d6e4; }
.hr-org li:after { right: auto; left: 50%; border-left: 2px solid #c8d6e4; }
.hr-org li:only-child:before, .hr-org li:only-child:after { display: none; }
.hr-org li:only-child { padding-top: 0; }
.hr-org li:first-child:before, .hr-org li:last-child:after { border: 0 none; }
.hr-org li:last-child:before { border-right: 2px solid #c8d6e4; border-radius: 0 6px 0 0; }
.hr-org li:first-child:after { border-radius: 6px 0 0 0; }
.hr-org ul ul:before { content: ""; position: absolute; top: 0; left: 50%; height: 18px; border-left: 2px solid #c8d6e4; }
.hr-org > ul { padding-top: 0; width: max-content; min-width: 100%; margin: 0 auto; }
.hr-node { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 138px; max-width: 170px; padding: 8px 10px; border: 1px solid #cbd7e2; border-top: 3px solid var(--brand-primary); border-radius: 6px; background: #fff; font-size: 11.5px; color: #1d3650; text-decoration: none; box-shadow: 0 1px 2px rgba(10, 40, 80, .06); }
.hr-node:hover { border-color: var(--brand-primary); }
.hr-node .av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #2083ee, #0962d3); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.hr-node b { font-size: 12px; }
.hr-node span { color: var(--muted); }
.hr-node.vacant { border-style: dashed; border-top-color: #f5a524; background: #fffaf0; }
.hr-node.leave { border-top-color: #7553d6; }
.hr-node .n { font-size: 10.5px; background: #eef3f8; border-radius: 999px; padding: 0 6px; }
@media (max-width: 760px) {
    .hr-form { grid-template-columns: minmax(0, 1fr); }
    .hr-head { flex-wrap: wrap; }
    .hr-head .hr-hs { justify-content: flex-start; }
    .hr-statusbar { overflow-x: auto; flex-wrap: nowrap; position: relative; padding-bottom: 4px; }
    .hr-statusbar a { flex: none; }
}
