.hr-workspace{display:grid;gap:18px;min-width:0}.hr-company{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:16px 20px;background:var(--surface);border:1px solid var(--border);border-radius:16px}.hr-company label{display:grid;gap:6px;font-size:12px;color:var(--muted);min-width:min(100%,310px)}.hr-company>span{font-size:12px;color:var(--muted)}.hr-private{display:flex;align-items:center;gap:7px;margin-left:auto}.hr-private .icon{width:16px;height:16px}.hr-nav{display:flex;gap:5px;overflow:auto;border-bottom:1px solid var(--border);padding-bottom:8px}.hr-nav>a{padding:11px 15px;white-space:nowrap;color:var(--muted);font-size:13px;font-weight:600;text-decoration:none;border-radius:10px}.hr-nav>a:hover,.hr-nav>a.active{background:var(--blue-soft,var(--soft));color:var(--blue)}.hr-panel{overflow:hidden}.hr-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px}.hr-panel-heading h2{margin:0;font-size:18px}.hr-panel-heading p{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.5}.hr-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.hr-toolbar{display:flex;gap:12px;align-items:flex-end;padding:0 20px 18px;flex-wrap:wrap}.hr-toolbar .search-field{flex:1;min-width:180px}.hr-toolbar>label:not(.search-field){display:grid;gap:5px;font-size:12px;color:var(--muted)}.hr-note{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--border);border-radius:12px;padding:14px 16px;background:var(--soft,var(--surface));color:var(--muted);font-size:13px;line-height:1.65}.hr-note>.icon{width:18px;height:18px;flex-shrink:0;margin-top:2px;color:var(--blue)}.hr-note p{margin:0;overflow-wrap:break-word}.hr-note.warning{border-color:color-mix(in srgb,var(--warning,#F59E0B) 30%,transparent);background:color-mix(in srgb,var(--warning,#F59E0B) 8%,var(--surface))}.hr-note.warning>.icon{color:var(--warning,#F59E0B)}.hr-steps{list-style:none;padding:0 20px 20px;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.hr-steps li{display:flex;gap:12px;align-items:flex-start}.hr-steps li>span{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;flex-shrink:0;background:var(--blue-soft,var(--soft));color:var(--blue);font-weight:700}.hr-steps strong{font-size:13px}.hr-steps p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.hr-table{width:100%}.hr-table td{vertical-align:top}.hr-table td:last-child{white-space:nowrap}.hr-table td small{line-height:1.6}.hr-money,.hr-mono{font-family:var(--font-numeric,'JetBrains Mono',monospace);font-variant-numeric:tabular-nums}.hr-money{white-space:nowrap}.hr-empty-inline{padding:0 20px 20px;margin:0;font-size:13px;color:var(--muted);line-height:1.7}.hr-card-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.hr-hero{display:flex;align-items:center;gap:18px;padding:22px}.hr-person-avatar{width:62px;height:62px;display:grid;place-items:center;border-radius:18px;background:var(--blue-soft,var(--soft));color:var(--blue);font-size:20px;font-weight:700;flex-shrink:0}.hr-hero h2{font-size:24px;margin:4px 0}.hr-hero p{font-size:13px;color:var(--muted);margin:6px 0 0}.hr-hero>.badge{margin-left:auto}.hr-definition{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:0 20px 24px;margin:0}.hr-definition div{min-width:0}.hr-definition dt{font-size:12px;color:var(--muted);margin-bottom:6px}.hr-definition dd{font-size:14px;font-weight:500;margin:0;overflow-wrap:anywhere;line-height:1.6}.hr-totals{display:flex;gap:12px;padding:0 20px 20px;flex-wrap:wrap}.hr-totals>div{display:grid;gap:7px;background:var(--soft,var(--surface));border:1px solid var(--border);border-radius:12px;padding:16px;min-width:175px;flex:1}.hr-totals span,.hr-totals small{font-size:12px;color:var(--muted)}.hr-totals strong{font-size:22px}.hr-totals small b{font-weight:500}.hr-run-meta{display:flex;gap:16px;align-items:center;padding:0 20px 20px;font-size:13px;color:var(--muted)}.hr-panel>.hr-note{margin:0 20px 20px}.hr-timeline{list-style:none;padding:0 20px 20px;margin:0;display:grid;gap:14px}.hr-timeline li{border-left:2px solid var(--border);padding-left:14px;display:grid;gap:5px;font-size:13px}.hr-timeline span{font-size:12px;color:var(--muted)}.hr-timeline p{margin:0;color:var(--muted);line-height:1.6}.hr-permission-tags{display:flex;gap:5px;flex-wrap:wrap;max-width:560px}.hr-permission-tags span{border-radius:6px;padding:4px 7px;background:var(--soft,var(--surface));font-size:11px;white-space:normal}.hr-dialog{display:grid;gap:18px}.hr-dialog .form-grid{margin:0}.hr-dialog label{min-width:0}.hr-check{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:10px!important;font-size:13px!important;font-weight:400!important;line-height:1.6!important;cursor:pointer}.hr-check>input{width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;padding:0!important;margin:3px 0 0!important;flex-shrink:0;accent-color:var(--blue)}.hr-check>span{flex:1;min-width:0}.hr-dialog fieldset{border:1px solid var(--border);border-radius:12px;padding:16px;min-width:0}.hr-dialog legend{font-size:12px;color:var(--muted);padding:0 7px}.hr-permissions{display:grid;gap:10px}.hr-entry-line{margin:0 0 14px}.hr-entry-line>.text-btn{margin-top:10px}.hr-dialog input[type=file]{font-size:12px;max-width:100%;padding:10px}.hr-dialog details{font-size:13px;min-width:0}.hr-dialog details>summary{cursor:pointer;padding-bottom:10px}.hr-dialog .hr-table{font-size:12px}.hr-dialog .hr-table td{white-space:normal;word-break:break-word;max-width:250px}.hr-import-progress{display:flex;align-items:center;gap:16px;color:var(--muted);font-size:12px;padding-bottom:14px;border-bottom:1px solid var(--border)}.hr-import-progress strong{color:var(--blue)}.hr-preview-summary{display:flex;align-items:center;justify-content:space-between;gap:12px}.hr-dialog .hr-totals{padding:0}.hr-dialog .hr-totals>div{min-width:130px}.hr-dialog .hr-totals strong{font-size:18px}.hr-row-errors{padding-left:16px;margin:0;color:var(--danger,#E11D48);font-size:12px;line-height:1.6}.hr-approval{padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--soft,var(--surface))}.hr-payment-balance{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);padding-bottom:14px}.hr-payment-balance span{font-size:13px;color:var(--muted)}.hr-payment-balance strong{font-size:22px}.hr-pager{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;gap:12px;font-size:12px;color:var(--muted)}.hr-dialog [hidden]{display:none!important}
@media(max-width:1000px){.hr-steps{grid-template-columns:1fr}.hr-definition{grid-template-columns:repeat(2,minmax(0,1fr))}.hr-private{margin-left:0}.hr-panel-heading{align-items:flex-start}.hr-panel-heading>.hr-actions{justify-content:flex-end}}
@media(max-width:600px){.hr-workspace{gap:12px}.hr-company{padding:14px;gap:10px}.hr-company label{width:100%;min-width:0}.hr-company select{width:100%;max-width:100%}.hr-company>span{font-size:11px}.hr-nav>a{padding:10px 12px}.hr-panel-heading{padding:16px;flex-wrap:wrap;gap:10px}.hr-panel-heading h2{font-size:17px}.hr-panel-heading>.hr-actions{justify-content:flex-start;width:100%}.hr-panel-heading>.hr-actions>.btn{flex:1}.hr-toolbar{padding:0 16px 16px;gap:9px}.hr-toolbar>.search-field{flex-basis:100%}.hr-toolbar>label:not(.search-field){flex:1}.hr-note{padding:12px;font-size:12px;gap:8px}.hr-panel>.hr-note{margin:0 16px 16px}.hr-steps{padding:0 16px 16px;gap:16px}.hr-card-heading{flex-wrap:wrap;gap:10px}.hr-card-heading>.hr-actions{width:100%}.hr-card-heading .btn{min-height:40px}.hr-hero{padding:16px;gap:12px;flex-wrap:wrap}.hr-person-avatar{width:48px;height:48px;font-size:18px;border-radius:14px}.hr-hero h2{font-size:20px}.hr-hero>div:nth-child(2){flex:1;min-width:0}.hr-hero p{line-height:1.5}.hr-hero>.badge{margin-left:60px}.hr-definition{padding:0 16px 20px;gap:16px}.hr-definition dd{font-size:13px}.hr-totals{padding:0 16px 16px;gap:8px}.hr-totals>div{min-width:125px;padding:12px}.hr-totals strong{font-size:18px}.hr-run-meta{padding:0 16px 16px;gap:10px;flex-wrap:wrap;font-size:12px}.hr-empty-inline{padding:0 16px 16px}.hr-timeline{padding:0 16px 16px}.hr-pager{padding:14px 16px}.hr-workspace .hr-table,.hr-workspace .hr-table tbody{display:block;min-width:0;width:100%}.hr-workspace .hr-table thead{display:none}.hr-workspace .hr-table tr{display:block;padding:10px 16px;border-bottom:1px solid var(--border)}.hr-workspace .hr-table td{display:grid;grid-template-columns:105px minmax(0,1fr);gap:8px;padding:6px 0;border:0;width:100%;max-width:none;font-size:13px;white-space:normal;overflow-wrap:break-word}.hr-workspace .hr-table td:before{content:attr(data-label);font-size:11px;color:var(--muted);grid-column:1}.hr-workspace .hr-table td>*{grid-column:2;min-width:0}.hr-workspace .hr-table td[data-label=""]{display:flex;justify-content:flex-end;flex-wrap:wrap}.hr-workspace .hr-table td[data-label=""]:before{display:none}.hr-workspace .btn{min-height:40px}.hr-import-progress{gap:10px;font-size:11px}.hr-dialog .form-grid{grid-template-columns:1fr}.hr-payment-balance strong{font-size:18px}.hr-dialog fieldset{padding:12px}}

.hr-flow-alerts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.hr-flow-alerts>div{display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:16px 18px;min-width:0}.hr-flow-alerts strong{font-family:var(--font-numeric,'JetBrains Mono',monospace);font-size:25px;color:var(--text);font-variant-numeric:tabular-nums}.hr-flow-alerts span{color:var(--muted);font-size:12px;line-height:1.5}.hr-flow-totals{padding:0}.hr-flow-totals:empty{display:none}.hr-flow-totals>div{flex:0 1 245px}.hr-note a{overflow-wrap:anywhere}.hr-dialog label:has(input[type=file]){padding:16px;border:1px dashed var(--border);border-radius:12px;background:var(--soft,var(--surface));display:grid;gap:10px}.hr-dialog input[type=file]::file-selector-button{background:var(--surface);border:1px solid var(--border);border-radius:8px;color:var(--text);padding:9px 12px;cursor:pointer;margin-right:10px}
@media(max-width:600px){.hr-flow-alerts{grid-template-columns:1fr;gap:8px}.hr-flow-alerts>div{padding:12px 14px}.hr-flow-alerts strong{font-size:21px}.hr-flow-totals>div{flex:1;min-width:135px}.hr-note{overflow-wrap:anywhere}.hr-dialog label:has(input[type=file]){padding:12px}.hr-card-heading>.hr-actions>.btn{flex:1;white-space:normal;text-align:center}.hr-panel .hr-actions{max-width:100%}.hr-workspace .hr-table td .hr-money{white-space:normal;overflow-wrap:anywhere}}
.hr-cost-share{margin:0 0 14px}.hr-cost-share>.text-btn{margin-top:10px}.hr-workspace .hr-panel-heading h2{overflow-wrap:anywhere}.hr-workspace .hr-table .hr-actions{max-width:380px}.hr-workspace .hr-table td:last-child>.btn{margin:0 5px 5px 0}.hr-workspace .hr-table td:last-child{white-space:normal;min-width:145px}.hr-dialog .hr-definition{padding:0;gap:14px}.hr-dialog .hr-definition dd{font-size:13px}.hr-dialog .hr-definition{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:600px){.hr-dialog .hr-definition{grid-template-columns:1fr}.hr-workspace .hr-table td:last-child{min-width:0}.hr-cost-share .form-grid{grid-template-columns:1fr}}

.hr-v4-body{padding:0 20px 20px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}.hr-v4-weekdays{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.hr-leave-charge{padding:14px;border:1px solid var(--border);border-radius:10px;margin-bottom:12px;background:var(--soft,var(--surface))}.hr-leave-charge>.btn{margin-top:10px}.hr-dialog input[type=datetime-local]{min-width:0;width:100%}.hr-dialog .hr-v4-weekdays .hr-check{font-size:12px!important}.hr-v4-body>a{white-space:normal}
@media(max-width:600px){.hr-v4-weekdays{grid-template-columns:repeat(2,minmax(0,1fr))}.hr-v4-body{padding:0 16px 16px}.hr-leave-charge{padding:12px}.hr-dialog input[type=datetime-local]{font-size:14px}}

.hr-v5-body{padding:0 20px 20px;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.hr-v5-body ul{margin:8px 0 0;padding-left:20px}.hr-v5-row{display:grid;gap:12px;margin:0 0 14px;background:var(--soft,var(--surface));min-width:0}.hr-v5-row>.btn{justify-self:start}.hr-v5-checks{display:grid;gap:8px;font-size:12px}.hr-v5-comparison{display:grid;gap:10px}.hr-v5-comparison>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.6fr) minmax(120px,1fr);gap:12px;align-items:center;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--soft,var(--surface));min-width:0}.hr-v5-comparison>div>span{font-size:12px;overflow-wrap:anywhere}.hr-v5-comparison strong{font-size:12px;text-align:right}.hr-v5-comparison label{font-size:11px}.hr-v5-comparison input{width:100%;min-width:0}.hr-v5-row details{padding-top:8px;border-top:1px solid var(--border)}
@media(max-width:600px){.hr-v5-body{padding:0 16px 16px}.hr-v5-comparison>div{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px}.hr-v5-comparison>div>label{grid-column:1/-1}.hr-v5-comparison>div>strong{white-space:normal}.hr-v5-row{gap:10px}.hr-v5-row>.btn{width:100%}}

/* V6 self service intentionally keeps the company management controls separate. */
.hr-v6-title{padding:4px 0 6px;min-width:0}.hr-v6-title h1{font-size:clamp(24px,3vw,32px);margin:8px 0;letter-spacing:-.03em}.hr-v6-title p{margin:0;color:var(--muted);font-size:14px;line-height:1.7}.hr-self-context select{max-width:100%}.hr-v6-quick{display:flex;flex-wrap:wrap;gap:10px}.hr-v6-quick>.btn{min-height:42px}.hr-v6-body{padding:0 20px 20px;min-width:0;font-size:13px;line-height:1.7;overflow-wrap:anywhere}.hr-v6-body p{margin:0 0 10px}.hr-v6-body p:last-child{margin-bottom:0}.hr-v6-message{white-space:pre-wrap;margin-top:14px!important}.hr-report-filter{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}.hr-report-filter>label{min-width:0}.hr-report-filter input,.hr-report-filter select{width:100%;min-width:0;max-width:100%}.hr-report-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px}.hr-report-total{padding:18px;background:var(--surface);border:1px solid var(--border);border-radius:14px;min-width:0}.hr-report-total h3{margin:0 0 14px;font-size:16px}.hr-report-total dl{display:grid;gap:10px;margin:0}.hr-report-total dl>div{display:flex;gap:14px;justify-content:space-between;align-items:baseline}.hr-report-total dt{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.hr-report-total dd{margin:0;font-size:13px;text-align:right}.hr-v6-leave-day{display:flex;gap:10px;align-items:end;padding:12px;border:1px solid var(--border);border-radius:10px;margin-bottom:10px;min-width:0}.hr-v6-leave-day>label{flex:1}.hr-v6-leave-day input{min-width:0;width:100%}.hr-self-workspace .hr-table td{overflow-wrap:anywhere}
@media(max-width:900px){.hr-report-filter{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.hr-v6-quick{gap:8px}.hr-v6-quick>.btn{flex:1 1 140px;white-space:normal}.hr-v6-body{padding:0 16px 16px}.hr-report-filter{grid-template-columns:1fr}.hr-report-totals{grid-template-columns:1fr}.hr-report-total{padding:14px}.hr-report-total .hr-money{white-space:normal;overflow-wrap:anywhere}.hr-v6-leave-day{align-items:stretch;flex-direction:column}.hr-v6-title p{font-size:13px}.hr-self-context{align-items:flex-start}.hr-self-context label{min-width:0;width:100%}.hr-self-context .hr-private{margin-left:0}.hr-self-workspace>.hr-nav{max-width:100%;flex-wrap:wrap}.hr-self-workspace .hr-table td .hr-money{white-space:normal}}


/* Grouped management navigation; personal portal navigation keeps its own layout. */
.hr-management-layout{display:grid;grid-template-columns:218px minmax(0,1fr);gap:20px;align-items:start;min-width:0}
.hr-management-content{display:grid;gap:18px;min-width:0}
.hr-management-content:only-child{grid-column:1/-1}
.hr-side-navigation{min-width:0;padding:10px;background:var(--surface);border:1px solid var(--border);border-radius:14px}
.hr-group-navigation{display:grid;gap:4px}
.hr-navigation-group{min-width:0}
.hr-navigation-group>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:10px;border-radius:8px;cursor:pointer;list-style:none;color:var(--secondary);font-size:13px;font-weight:600;overflow-wrap:anywhere}
.hr-navigation-group>summary::-webkit-details-marker{display:none}
.hr-navigation-group>summary::after{content:'';width:6px;height:6px;flex:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);margin-right:3px}
.hr-navigation-group[open]>summary::after{transform:rotate(45deg)}
.hr-navigation-group>summary:hover,.hr-navigation-group.current>summary{background:var(--blue-soft,var(--soft));color:var(--blue)}
.hr-navigation-label{min-width:0}
.hr-navigation-links{display:grid;gap:3px;padding:4px 0 8px 8px}
.hr-navigation-link{display:block;min-width:0;padding:10px 12px;border-radius:8px;font-size:13px;line-height:1.5;text-decoration:none;color:var(--muted);overflow-wrap:anywhere}
.hr-navigation-link:hover{background:var(--soft);color:var(--text)}
.hr-navigation-link.active{background:var(--blue-soft,var(--soft));color:var(--blue);font-weight:600}
.hr-personal-navigation{display:grid;grid-column:1/-1;gap:3px;padding-bottom:10px;margin-bottom:8px;border-bottom:1px solid var(--border)}
@media(max-width:1100px){.hr-management-layout{grid-template-columns:1fr;gap:16px}.hr-group-navigation{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:6px}.hr-personal-navigation{display:flex;flex-wrap:wrap;gap:6px}.hr-management-content{gap:16px}}
@media(max-width:600px){.hr-management-layout{gap:12px}.hr-group-navigation{grid-template-columns:1fr}.hr-side-navigation{padding:8px}.hr-navigation-group>summary,.hr-navigation-link{min-height:44px}.hr-management-content{gap:12px}}

/* Grid gaps provide the spacing; generic sibling-label margins would stagger controls. */
.dialog-body.hr-dialog>label,.dialog-body :is(.hr-permissions,.hr-v4-weekdays,.hr-v5-checks)>label{margin-top:0}
