.hrm-panel{--hrm:var(--brand,#0757b8);--hrm-strong:var(--ink-strong,#0b4d99);--hrm-soft:var(--brand-soft,#edf5ff);--hrm-line:var(--line-strong,#b8d4f5)}.hrm-hero{padding:4px 0 16px;border-bottom:1px solid var(--line,#c8d8ef);color:inherit}.hrm-hero h2{margin:4px 0 6px;color:var(--ink,#14213d);font-size:clamp(1.35rem,2.6vw,1.9rem)}.hrm-hero p{margin:0;max-width:760px;color:var(--muted);font-size:.92rem}.hrm-hero .eyebrow,.hrm-kicker{margin:0;color:var(--hrm);font-size:.72rem;font-weight:800;letter-spacing:.1em}.hrm-tabs{display:flex;gap:4px;margin:12px 0 18px;overflow:auto;border-bottom:1px solid var(--line,#c8d8ef);padding-bottom:0}.hrm-tabs button{position:relative;white-space:nowrap;border:0;border-radius:8px 8px 0 0;background:transparent;padding:10px 13px;color:var(--muted);font-weight:700}.hrm-tabs button:hover{background:var(--hrm-soft);color:var(--hrm-strong)}.hrm-tabs button.active{background:var(--hrm-soft);color:var(--hrm-strong)}.hrm-tabs button.active::after{position:absolute;right:10px;bottom:-1px;left:10px;height:3px;border-radius:3px 3px 0 0;background:var(--hrm);content:""}.hrm-section-heading,.hrm-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.hrm-section-heading{margin-bottom:12px}.hrm-section-heading h3,.hrm-card h3{margin:3px 0 0;color:var(--ink,#14213d);font-size:1.05rem}.hrm-heading-note,.hrm-subtext,.hrm-card small{display:block;color:var(--muted);font-size:.8rem}.hrm-heading-note{padding-top:5px;text-align:right}.hrm-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.hrm-metric,.hrm-card{min-width:0;border:1px solid var(--line,#c8d8ef);border-radius:14px;background:var(--surface);padding:15px}.hrm-metric{border-top:3px solid var(--hrm)}.hrm-metric span{display:block;color:var(--muted);font-size:.8rem}.hrm-metric strong{display:block;margin-top:6px;color:var(--ink,#14213d);font-size:1.55rem}.hrm-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:14px;margin-top:14px}.hrm-priority-card{border-color:var(--hrm-line)}.hrm-supporting-card{background:linear-gradient(180deg,var(--surface),var(--hrm-soft))}.hrm-count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;border-radius:999px;background:var(--hrm-soft);color:var(--hrm-strong);font-size:.8rem;font-weight:800}.hrm-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 0}.hrm-facts div{border:1px solid var(--hrm-line);border-radius:10px;background:var(--surface);padding:10px}.hrm-facts dt{color:var(--muted);font-size:.76rem}.hrm-facts dd{margin:4px 0 0;color:var(--ink,#14213d);font-size:1.2rem;font-weight:800}.hrm-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.hrm-toolbar input{max-width:360px}.hrm-table-wrap{border:1px solid var(--line,#c8d8ef);border-radius:10px;overflow:auto}.hrm-table{width:100%;border-collapse:collapse}.hrm-table th{position:sticky;top:0;background:var(--hrm-soft);color:var(--muted);font-size:.74rem;text-align:left;text-transform:uppercase;letter-spacing:.04em}.hrm-table th,.hrm-table td{padding:10px 11px;border-bottom:1px solid var(--line,#c8d8ef)}.hrm-table tbody tr:last-child td{border-bottom:0}.hrm-table tbody tr:hover{background:var(--hrm-soft)}.hrm-status{display:inline-flex;padding:4px 8px;border-radius:999px;background:var(--hrm-soft);color:var(--hrm-strong);font-size:.76rem;font-weight:700}.hrm-empty{text-align:center;padding:30px;color:var(--muted)}.hrm-section-spaced{margin-top:14px}.hrm-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hrm-form label{display:grid;gap:6px}.hrm-form .wide{grid-column:1/-1}.hrm-form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}.hrm-form-dialog{width:min(720px,calc(100vw - 24px));border:0;border-radius:16px;padding:22px;max-height:90vh;overflow:auto}.hrm-request-card{display:grid;gap:8px;margin-bottom:10px;border:1px solid var(--line,#c8d8ef);border-left:3px solid var(--hrm);border-radius:10px;padding:12px}.hrm-request-card header{display:flex;justify-content:space-between;gap:12px}.hrm-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:2px}.hrm-progress-list{display:grid;gap:12px}.hrm-progress-list label{display:grid;grid-template-columns:130px minmax(100px,1fr) auto;align-items:center;gap:10px;color:var(--muted);font-size:.85rem}.hrm-progress-list progress{width:100%;accent-color:var(--hrm)}.hrm-loading{padding:40px;text-align:center;color:var(--muted)}@media(max-width:900px){.hrm-metrics{grid-template-columns:repeat(2,1fr)}.hrm-grid{grid-template-columns:1fr}.hrm-form{grid-template-columns:1fr}.hrm-form .wide{grid-column:auto}.hrm-table{min-width:720px}}@media(max-width:600px){.hrm-hero{padding-bottom:12px}.hrm-tabs{margin-inline:-2px}.hrm-tabs button{padding:9px 11px;font-size:.84rem}.hrm-section-heading{display:block}.hrm-heading-note{padding-top:7px;text-align:left}.hrm-metric{padding:12px}.hrm-metric strong{font-size:1.35rem}.hrm-facts{grid-template-columns:1fr 1fr}.hrm-toolbar{align-items:flex-start}.hrm-toolbar input{width:100%;max-width:none}.hrm-progress-list label{grid-template-columns:1fr;gap:5px}.hrm-request-card header{align-items:flex-start}.hrm-actions .btn{flex:1 1 auto}}@media(max-width:420px){.hrm-metrics{grid-template-columns:1fr 1fr}.hrm-facts{grid-template-columns:1fr}}

.hrm-form-dialog{width:min(860px,calc(100vw - 24px));max-width:min(860px,calc(100vw - 24px));overflow-x:hidden}.hrm-form-dialog :is(form,#hrmDynamicFields,.hrm-request-lead-row,.hrm-approver-builder,label,input,select,textarea){min-width:0}.hrm-request-lead-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(220px,.8fr) minmax(320px,1.2fr);gap:12px}.hrm-request-lead-row>.hrm-approver-builder{grid-column:auto}.hrm-approver-builder{position:relative;grid-column:1/-1;display:grid;gap:8px}.hrm-approver-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:700}.hrm-approver-heading small{color:var(--muted);font-weight:500}.hrm-approver-picker{display:flex;align-items:center;gap:6px;min-height:44px;padding:5px 8px;border:1px solid var(--line);border-radius:10px;background:var(--surface);flex-wrap:wrap}.hrm-approver-picker:focus-within{border-color:var(--bms-focus);outline:3px solid color-mix(in srgb,var(--bms-focus) 24%,transparent)}.hrm-approver-chips{display:contents}.hrm-approver-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:3px 5px 3px 3px;border-radius:999px;background:var(--hrm-soft);color:var(--ink);font-weight:700}.hrm-approver-chip>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hrm-approver-chip button{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;background:transparent;color:var(--muted);font-size:1.1rem}.hrm-approver-avatar{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:var(--hrm);color:var(--bms-surface);font-size:.7rem;font-weight:800}.hrm-approver-search{flex:1 1 150px!important;width:auto!important;min-height:32px!important;padding:4px!important;border:0!important;outline:0!important;background:transparent!important}.hrm-approver-suggestions{position:absolute;z-index:4;top:calc(100% - 34px);right:0;left:0;max-height:260px;padding:5px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:var(--bms-shadow-overlay);overflow:auto}.hrm-approver-suggestions button{display:flex;align-items:center;gap:9px;width:100%;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--ink);text-align:left}.hrm-approver-suggestions button:hover,.hrm-approver-suggestions button:focus{background:var(--hrm-soft)}.hrm-approver-suggestions button>span:last-child{display:grid;min-width:0}.hrm-approver-suggestions strong,.hrm-approver-suggestions small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hrm-approver-suggestions small{color:var(--muted)}.hrm-approver-values{display:none}.hrm-approver-all{display:flex!important;align-items:center;gap:9px!important;color:var(--muted);font-size:.82rem}.hrm-approver-all input{position:absolute;width:1px;height:1px;opacity:0}.hrm-approver-all>span{position:relative;width:38px;height:22px;border-radius:999px;background:var(--line-strong);transition:.15s}.hrm-approver-all>span::after{position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--surface);box-shadow:var(--bms-shadow-1);content:"";transition:.15s}.hrm-approver-all input:checked+span{background:var(--hrm)}.hrm-approver-all input:checked+span::after{transform:translateX(16px)}.hrm-approver-all input:focus-visible+span{outline:3px solid color-mix(in srgb,var(--bms-focus) 35%,transparent)}.hrm-required{color:var(--bms-danger)}
@media(max-width:600px){.hrm-request-lead-row{grid-column:auto;grid-template-columns:1fr}}
@media(max-width:600px){.hrm-approver-heading{align-items:flex-start;flex-direction:column}.hrm-approver-suggestions{top:calc(100% - 32px)}}

/* Huashu-approved compact approval form: dense two-column operational grid. */
.hrm-request-dialog{width:min(960px,calc(100vw - 24px));max-width:min(960px,calc(100vw - 24px));max-height:calc(100vh - 24px);padding:0;overflow:hidden}
.hrm-request-dialog>h3{margin:0;padding:16px 20px 12px;border-bottom:1px solid var(--line);font-size:1.16rem}
.hrm-request-dialog>#hrmRequestForm{display:grid;grid-template-columns:1fr;gap:0}
.hrm-request-dialog .hrm-template-field{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:10px;padding:10px 20px;border-bottom:1px solid var(--line);background:var(--surface-soft,var(--bms-surface-subtle))}
.hrm-request-dialog #hrmDynamicFields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;max-height:calc(100vh - 196px);padding:14px 20px;overflow-x:hidden;overflow-y:auto}
.hrm-request-dialog #hrmDynamicFields:empty{display:none}
.hrm-request-dialog .hrm-request-field{display:grid;align-content:start;gap:5px;min-width:0}
.hrm-request-dialog .hrm-request-field>span,.hrm-request-dialog .hrm-approver-heading{font-size:.78rem}
.hrm-request-dialog .hrm-request-field :is(input,select,textarea),.hrm-request-dialog .hrm-approver-picker{min-height:40px}
.hrm-request-dialog .hrm-request-field textarea{resize:vertical}
.hrm-request-dialog .hrm-request-field:is([data-field-key="transferInfo"],[data-field-key="transferContent"]) textarea{height:40px;min-height:40px;padding-block:9px}
.hrm-request-dialog .hrm-request-field[data-field-key="otherDescription"] textarea,.hrm-request-dialog .hrm-request-field[data-field-key="purpose"] textarea{min-height:64px}
.hrm-request-dialog .hrm-request-lead-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(220px,.8fr) minmax(360px,1.2fr);gap:12px}
.hrm-request-dialog .hrm-approver-builder{grid-column:1/-1;gap:5px}
.hrm-request-dialog .hrm-request-lead-row>.hrm-approver-builder{grid-column:auto}
.hrm-request-dialog .hrm-approver-heading small{font-size:.72rem}
.hrm-request-dialog .hrm-approver-all{margin-top:1px}
.hrm-request-dialog .hrm-form-actions{position:sticky;bottom:0;z-index:2;grid-column:1/-1;margin:0;padding:11px 20px;border-top:1px solid var(--line);background:var(--surface);box-shadow:var(--bms-shadow-1)}

@media(max-width:720px){
  .hrm-request-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);max-height:calc(100vh - 12px)}
  .hrm-request-dialog>h3{padding:14px 16px 10px}
  .hrm-request-dialog .hrm-template-field{grid-template-columns:1fr;gap:5px;padding:9px 16px}
  .hrm-request-dialog #hrmDynamicFields{grid-template-columns:1fr;max-height:calc(100vh - 210px);padding:12px 16px}
  .hrm-request-dialog .hrm-request-lead-row{grid-template-columns:1fr}
  .hrm-request-dialog .hrm-form-actions{padding:10px 16px}
  .hrm-request-dialog .hrm-form-actions .btn{flex:1}
}
.hrm-form-dialog{--hrm:var(--bms-primary);--hrm-soft:var(--bms-surface-selected);--hrm-line:var(--line-strong)}
.hrm-request-detail-dialog{width:min(820px,calc(100vw - 24px));max-height:calc(100vh - 24px);padding:0;overflow:hidden}.hrm-request-detail-dialog>h3{margin:0;padding:16px 20px 12px;border-bottom:1px solid var(--line);font-size:1.16rem}.hrm-request-detail{display:grid;gap:16px;max-height:calc(100vh - 154px);padding:16px 20px;overflow:auto}.hrm-request-detail>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.hrm-request-detail>header h4{margin:3px 0 4px;color:var(--ink);font-size:1.15rem}.hrm-request-detail h5{display:flex;align-items:center;gap:7px;margin:0 0 8px;color:var(--ink);font-size:.9rem}.hrm-request-detail h5 span{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:var(--hrm-soft);color:var(--hrm-strong);font-size:.72rem}.hrm-request-detail-facts,.hrm-request-detail-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.hrm-request-detail-facts>div,.hrm-request-detail-fields>div{min-width:0;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft,var(--bms-surface-subtle))}.hrm-request-detail-fields .wide{grid-column:1/-1}.hrm-request-detail dt{color:var(--muted);font-size:.72rem}.hrm-request-detail dd{margin:4px 0 0;color:var(--ink);font-weight:700;white-space:pre-wrap;overflow-wrap:anywhere}.hrm-request-attachments{display:grid;gap:7px}.hrm-request-attachments>p,.hrm-request-timeline>p{margin:0;color:var(--muted)}.hrm-request-attachments .btn{display:flex;align-items:center;justify-content:flex-start;gap:7px;min-width:0;text-align:left}.hrm-request-attachments .btn span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hrm-request-attachments .btn small{margin-left:auto;white-space:nowrap}.hrm-request-timeline,.hrm-request-history{display:grid;gap:8px}.hrm-request-timeline article{display:grid;grid-template-columns:14px minmax(0,1fr);gap:8px}.hrm-request-timeline-dot{width:10px;height:10px;margin-top:4px;border:2px solid var(--surface);border-radius:50%;background:var(--hrm);box-shadow:0 0 0 1px var(--hrm)}.hrm-request-timeline strong,.hrm-request-timeline small,.hrm-request-history strong,.hrm-request-history small{display:block}.hrm-request-timeline p,.hrm-request-history p{margin:4px 0 0;color:var(--ink);white-space:pre-wrap}.hrm-request-history article{padding:9px 10px;border-left:3px solid var(--hrm-line);background:var(--surface-soft,var(--bms-surface-subtle))}.hrm-request-detail-actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid var(--line);background:var(--surface)}
@media(max-width:600px){.hrm-request-detail-dialog{width:calc(100vw - 12px);max-height:calc(100vh - 12px)}.hrm-request-detail-dialog>h3{padding:14px 16px 10px}.hrm-request-detail{max-height:calc(100vh - 174px);padding:12px 16px}.hrm-request-detail-facts,.hrm-request-detail-fields{grid-template-columns:1fr}.hrm-request-detail-fields .wide{grid-column:auto}.hrm-request-detail-actions{flex-wrap:wrap;padding:10px 16px}.hrm-request-detail-actions .btn{flex:1 1 auto}}

/* Approval dialogs own one scroll region even after the legacy Wave 4 overlay layer. */
body.bms-opendesign-v8.bms-wave-4>.hrm-form-dialog.hrm-request-dialog{width:min(960px,calc(100vw - 24px));max-width:min(960px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden}
body.bms-opendesign-v8.bms-wave-4>.hrm-form-dialog.hrm-request-dialog>h3{margin:0}
body.bms-opendesign-v8.bms-wave-4>.hrm-form-dialog.hrm-request-dialog .hrm-form-actions{bottom:0;margin:0;padding:11px 20px}
body.bms-opendesign-v8.bms-wave-4>.hrm-form-dialog.hrm-request-detail-dialog{position:relative;width:min(820px,calc(100vw - 24px));max-width:min(820px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden}
body.bms-opendesign-v8.bms-wave-4>.hrm-form-dialog.hrm-request-detail-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
body.bms-opendesign-v8.bms-wave-4>.hrm-form-dialog.hrm-request-detail-dialog>h3{margin:0;padding-right:68px}
body.bms-opendesign-v8.bms-wave-4>.hrm-form-dialog.hrm-request-detail-dialog .hrm-request-detail{min-height:0;max-height:none;overflow-y:auto}
body.bms-opendesign-v8.bms-wave-4>.hrm-form-dialog.hrm-request-detail-dialog .hrm-request-detail-actions [data-close]{position:absolute;z-index:3;top:8px;right:12px;display:grid;width:40px;height:40px;min-height:40px;place-items:center;padding:0;border:0;border-radius:var(--bms-radius-round);color:var(--bms-text-muted);background:transparent;font-size:0;cursor:pointer}
body.bms-opendesign-v8.bms-wave-4>.hrm-form-dialog.hrm-request-detail-dialog .hrm-request-detail-actions [data-close]::before{content:"×";font:400 26px/1 var(--bms-font-ui)}
body.bms-opendesign-v8.bms-wave-4>.hrm-form-dialog.hrm-request-detail-dialog .hrm-request-detail-actions [data-close]:hover{color:var(--bms-text);background:var(--bms-surface-subtle)}
body.bms-opendesign-v8.bms-wave-4>.hrm-form-dialog.hrm-request-detail-dialog .hrm-request-detail-actions [data-close]:focus-visible{outline:2px solid var(--bms-focus);outline-offset:2px}
body.bms-opendesign-v8.bms-wave-4>.hrm-form-dialog.hrm-request-detail-dialog .hrm-request-detail-actions:has(>[data-close]:only-child){position:static;height:0;padding:0;border:0}
@media(max-width:600px){body.bms-opendesign-v8.bms-wave-4>.hrm-form-dialog.hrm-request-dialog,body.bms-opendesign-v8.bms-wave-4>.hrm-form-dialog.hrm-request-detail-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}body.bms-opendesign-v8.bms-wave-4>.hrm-form-dialog.hrm-request-dialog .hrm-form-actions{padding:10px 16px}body.bms-opendesign-v8.bms-wave-4>.hrm-form-dialog.hrm-request-detail-dialog .hrm-request-detail-actions [data-close]{top:6px;right:8px}}
.hrm-workflow-template-list{display:grid;gap:8px;margin-top:14px}.hrm-workflow-template-list article{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line,var(--bms-border));border-radius:10px;padding:10px 12px}.hrm-workflow-template-list article>div{min-width:0}.hrm-workflow-template-list strong,.hrm-workflow-template-list small{display:block}.hrm-workflow-builder{display:grid;gap:16px}.hrm-workflow-builder header h4{margin:5px 0}.hrm-workflow-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.hrm-workflow-builder ol,.hrm-configured-flow ol{display:grid;gap:8px;margin:0;padding:0;list-style:none}.hrm-workflow-builder li{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid var(--line,var(--bms-border));border-radius:10px;padding:9px}.hrm-workflow-builder li>div:last-child{display:flex;gap:5px}.hrm-workflow-builder li button{width:32px;height:32px;border:1px solid var(--line,var(--bms-border));border-radius:8px;background:var(--surface,var(--bms-surface));color:var(--ink,var(--bms-text))}.hrm-workflow-step,.hrm-configured-flow li>span{display:grid;width:26px;height:26px;place-items:center;border-radius:999px;background:var(--hrm-soft);color:var(--hrm-strong);font-weight:800}.hrm-workflow-empty{display:block!important;text-align:center;color:var(--muted)}.hrm-workflow-builder footer{display:flex;justify-content:flex-end;gap:8px}.hrm-configured-flow{display:grid;gap:9px;border:1px solid var(--hrm-line);border-radius:10px;background:var(--hrm-soft);padding:12px}.hrm-configured-flow li{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;gap:8px}.hrm-configured-flow li strong{font-size:.84rem}
@media(max-width:600px){.hrm-workflow-template-list article{align-items:stretch;flex-direction:column}.hrm-workflow-template-list .btn{width:100%}.hrm-workflow-add{grid-template-columns:1fr}.hrm-workflow-builder li{grid-template-columns:30px minmax(0,1fr)}.hrm-workflow-builder li>div:last-child{grid-column:2}}
