.personnel-flow,#hrEditorDialog{--pf-bg:#09233c;--pf-panel:#102e49;--pf-field:#173750;--pf-text:#f1f7ff;--pf-muted:#c6d9e9;--pf-border:#69889f;--pf-accent:#ffc357;background:linear-gradient(125deg,#071e34,#102e49)!important;color:var(--pf-text)!important;border:1px solid var(--pf-border);border-radius:14px;padding:24px;min-width:0;box-sizing:border-box}
.personnel-flow[hidden]{display:none!important}.personnel-flow header{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:flex-start}.personnel-flow header p:first-child{color:var(--pf-accent)!important;letter-spacing:.1em;font-size:.8rem;font-weight:700}.personnel-flow :is(h2,h3,h4,p,span,strong,label,legend,small,dt,dd){color:var(--pf-text)!important;opacity:1!important}.personnel-flow p{line-height:1.6}.personnel-flow section,.personnel-flow fieldset{padding:18px;margin:18px 0;border:1px solid var(--pf-border);border-radius:12px;background:var(--pf-panel)}.personnel-flow h3{border-left:3px solid var(--pf-accent);padding-left:10px}.personnel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.personnel-flow label{display:grid;align-content:start;gap:7px;margin:10px 0;font-weight:700}.personnel-flow .field-help{font-size:.82rem;font-weight:400;line-height:1.5;color:var(--pf-muted)!important}.personnel-flow :is(input,select,textarea),#hrEditorDialog :is(input,select,textarea){min-width:0;width:100%;box-sizing:border-box;min-height:44px;padding:10px 12px;background:var(--pf-field)!important;color:var(--pf-text)!important;border:1px solid var(--pf-border)!important;border-radius:8px;font:inherit;color-scheme:dark}.personnel-flow :is(button,a),#hrEditorDialog button{min-height:44px;border:1px solid var(--pf-border);border-radius:9px;padding:11px 15px;background:#14344f;color:#f1f7ff!important;font:700 14px Arial,sans-serif;cursor:pointer;box-sizing:border-box}.personnel-flow a{display:inline-flex;align-items:center;overflow-wrap:anywhere}.personnel-flow button.personnel-primary,#hrEditorDialog button.primary-action{background:linear-gradient(#ffd27d,#f2af33)!important;color:#10273b!important;border-color:#f2af33}.personnel-flow :is(button,input,select,textarea):focus-visible,#hrEditorDialog :focus-visible{outline:3px solid #ffc357;outline-offset:3px;box-shadow:0 0 0 5px #001a30}.personnel-flow :is(input,select,textarea):disabled,.personnel-flow :is(input,textarea)[readonly],#hrEditorDialog :disabled{color:#d6e6f4!important;background:#19384e!important;opacity:1!important}.personnel-flow button:disabled{background:#27435a!important;color:#d6e6f4!important;cursor:not-allowed;opacity:1!important}.personnel-actions{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.personnel-route{border-left:3px solid #ffc357;padding:16px;background:#0b263f;border-radius:8px}.personnel-route p{margin:8px 0}.personnel-record{display:grid;gap:10px;text-align:left;width:100%;margin:12px 0}.personnel-warning{border-left:3px solid #ffc357;padding:12px}.personnel-flow [data-personnel-message]{border-radius:8px;padding:12px;background:#0a243d}.personnel-flow [data-personnel-existing-files]{display:flex;flex-wrap:wrap;gap:8px}
#personnelProcessDialog{width:min(1000px,95vw);max-height:90dvh;padding:20px}#personnelProcessDialog::backdrop,#hrEditorDialog::backdrop{background:rgba(0,12,25,.75);backdrop-filter:blur(4px)}.personnel-dialog-body{max-height:72dvh;overflow:auto;padding:5px 12px 30px 0}.personnel-flow .portal-bi,.personnel-flow .portal-bi :is(table,thead,tbody,tr,td,th){background:#102e49!important;color:#f1f7ff!important}.personnel-flow .portal-bi svg text{fill:#f1f7ff!important}
/* RH screens and editors share the same design, including lists and process states. */
#hrPortal .hr-panel-content,#hrPortal .hr-record,#hrPortal .hr-details,#hrPortal .hr-history,#hrPortal .hr-attachments,#hrPortal .hr-actions,#hrEditorDialog .hr-dialog-shell,#hrEditorDialog .hr-dialog-body,#hrEditorDialog .hr-dialog-header,#hrEditorDialog .hr-dialog-actions{background:#102e49!important;color:#f1f7ff!important;border-color:#69889f!important}#hrPortal .hr-panel-content{padding:22px;border-radius:14px;border:1px solid #69889f}#hrPortal .hr-panel-content :is(h2,h3,h4,p,label,small,strong,span,dt,dd,summary),#hrEditorDialog :is(h2,h3,h4,p,label,small,strong,span){color:#f1f7ff!important;opacity:1!important}#hrPortal .hr-panel-content :is(input,select,textarea){background:#173750!important;color:#f1f7ff!important;border:1px solid #69889f!important;border-radius:8px;min-height:44px;padding:10px;color-scheme:dark}#hrPortal .hr-panel-content button,#hrEditorDialog button{background:#173750!important;color:#f1f7ff!important;border:1px solid #69889f!important;min-height:44px;border-radius:8px}#hrPortal .hr-panel-content button.primary-action,#hrPortal .hr-panel-content button.active,#hrEditorDialog button.primary-action{background:#ffc357!important;color:#10273b!important;border-color:#ffc357!important}#hrEditorDialog{padding:0}#hrEditorDialog .field-guidance{color:#c6d9e9!important}
@media(max-width:700px){.personnel-flow{padding:16px}.personnel-grid{grid-template-columns:1fr}.personnel-flow section,.personnel-flow fieldset{padding:12px}.personnel-actions button{width:100%}#personnelProcessDialog{width:96vw;padding:12px}.personnel-dialog-body{padding-right:2px}#hrPortal .hr-panel-content{padding:14px}}
@media(forced-colors:active){.personnel-flow,.personnel-flow *{forced-color-adjust:auto}.personnel-flow{background:Canvas!important;color:CanvasText!important}}

.personnel-flow{background-color:#102e49!important}

.personnel-flow button.personnel-primary{background-color:#f2af33!important}#hrEditorDialog{background-color:#102e49!important}#hrPortal .hr-panel-content :is(.content-card,.form-card,.notice,.hr-task,fieldset,details,.hr-careers-policy,table,thead,tbody,tr,td,th){background:#102e49!important;color:#f1f7ff!important}#hrPortal .hr-panel-content a{color:#96ddff!important}#hrPortal .hr-panel-content :is(button,input,select,textarea):focus-visible{outline:3px solid #ffc357;outline-offset:3px}

/* Validation01: a grid child must not widen the RH panel on mobile. */
#hrPortal .hr-panel-content{grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%;box-sizing:border-box}
#hrPortal .hr-panel-content>*,#hrPortal .personnel-grid>*{min-width:0;max-width:100%;box-sizing:border-box}
#hrPortal .personnel-flow{width:100%;max-width:100%;overflow-wrap:anywhere}
#hrPortal .personnel-flow :is(label,p,h2,h3,h4,small,strong){min-width:0;overflow-wrap:anywhere}
#hrPortal .hr-panel-content button.personnel-primary{background:#ffc357!important;color:#10273b!important;border-color:#ffc357!important}
.personnel-flow input[type=checkbox]{width:18px;min-height:18px;height:18px;padding:0;accent-color:#ffc357}

/* RH settings windows: move existing forms, never duplicate or reset them on tab change. */
#hrPortal .rh-settings-window-header{background:#0b263f;border:1px solid #69889f;border-radius:12px;padding:16px;min-width:0}
#hrPortal .rh-settings-window-header p{margin:0 0 12px;color:#f1f7ff!important}
#hrPortal .rh-settings-window-tabs{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
#hrPortal .rh-settings-window-tabs button{padding:11px 15px;min-height:44px;background:#173750!important;color:#f1f7ff!important;font-weight:700;white-space:normal;text-align:left;max-width:100%}
#hrPortal .rh-settings-window-tabs button[aria-selected=true]{background:#ffc357!important;color:#10273b!important;border-color:#ffc357!important}
#hrPortal [data-rh-settings-panel][hidden]{display:none!important}
#hrPortal .rh-settings-window-panels,#hrPortal [data-rh-settings-panel]{min-width:0;max-width:100%}
#hrPortal [data-rh-settings-panel]>section{margin:0;min-width:0;max-width:100%;box-sizing:border-box}
#hrPortal [data-rh-settings-panel] .hr-admin-form{align-items:start;min-width:0}
#hrPortal [data-rh-settings-panel] .hr-admin-form>button{align-self:end;justify-self:start;width:auto;min-height:44px;padding:11px 15px}
#hrPortal [data-rh-settings-panel] .hr-admin-form>label{min-width:0}
#hrPortal [data-rh-settings-panel] :is(input,select,textarea){box-sizing:border-box;min-width:0;max-width:100%}
#hrPortal [data-rh-settings-panel] input[type=checkbox]{width:18px;height:18px;min-height:18px;padding:0;accent-color:#ffc357}
@media(max-width:700px){#hrPortal .rh-settings-window-header{padding:12px}#hrPortal .rh-settings-window-tabs button{flex:1 1 100%;width:100%}#hrPortal [data-rh-settings-panel] .hr-admin-form{grid-template-columns:minmax(0,1fr)}}

@media(max-width:700px){#hrPortal .rh-settings-window-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}#hrPortal .rh-settings-window-tabs button{width:100%;font-size:13px;overflow-wrap:anywhere;padding:10px;align-self:stretch}}
