/* Shared wizard actions: bounded touch targets and breathing room, without moving controllers. */
:is(.sw-foot,.cm-modal-card .cm-actions,.he-modal .he-actions,.ap-dialog footer,#teacherReqWizard .dash-actions:has(#teacherReqNext),#rcDecisionModal .rc-modal-actions){display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:10px!important;box-sizing:border-box;min-width:0;padding-block:12px!important}
:is(.sw-foot,.cm-modal-card .cm-actions,.he-modal .he-actions,.ap-dialog footer,#teacherReqWizard .dash-actions:has(#teacherReqNext),#rcDecisionModal .rc-modal-actions)>:is(button,a.btn){box-sizing:border-box;min-height:40px;max-width:100%;padding:8px 14px!important;margin:0!important;border-radius:10px!important;line-height:1.6;white-space:normal;word-break:normal;flex-shrink:0}
:is(.sw-foot,.cm-modal-card .cm-actions,.he-modal .he-actions,.ap-dialog footer) [hidden]{display:none!important}
:is(.sw-foot,.cm-modal-card .cm-actions,.he-modal .he-actions,.ap-dialog footer) button:focus-visible{outline:2px solid #60a5fa;outline-offset:3px}
@media(max-width:480px){:is(.sw-foot,.cm-modal-card .cm-actions,.he-modal .he-actions,.ap-dialog footer,#teacherReqWizard .dash-actions:has(#teacherReqNext)){gap:8px!important;padding-inline:8px!important}:is(.sw-foot,.cm-modal-card .cm-actions,.he-modal .he-actions,.ap-dialog footer)>button{font-size:12px}}
:is(dialog[data-sw],.cm-modal-card,.ap-dialog,.he-modal) :is([data-sw-x],.cm-modal-x,header>[data-ap-close],header>[data-he-close]){display:inline-flex!important;align-items:center!important;justify-content:center!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;flex:0 0 36px;border-radius:10px!important;line-height:1!important}
:is(dialog[data-sw],.acct-dialog) td:has(>.je-remove-row){padding:10px!important;min-width:56px;box-sizing:border-box}
:is(dialog[data-sw],.acct-dialog) .je-remove-row{position:static!important;transform:none!important;margin:0!important;width:36px;min-width:36px;height:36px;box-sizing:border-box}

/* Each row has a reserved action column inside its border. */
body #teacherReqWizard .admin-grid-fields:has(>.teacherReqRemoveRow){display:grid!important;grid-template-columns:repeat(var(--repeat-cols,3),minmax(0,1fr)) 40px!important;box-sizing:border-box!important;min-width:0!important;max-width:100%!important;padding:16px!important;gap:12px!important;align-items:end!important}
body #teacherReqWizard .admin-grid-fields:has(>.teacherReqRemoveRow)>label{min-width:0!important;max-width:100%!important;margin:0!important;grid-column:auto;grid-row:auto}
body #teacherReqWizard .admin-grid-fields:has(>.teacherReqRemoveRow)>label.salary-find{grid-column:1/-1!important}
body #teacherReqWizard .admin-grid-fields>.teacherReqRemoveRow{position:static!important;grid-column:-2/-1!important;grid-row:auto!important;justify-self:center!important;align-self:end!important;transform:none!important;inset:auto!important;float:none!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:0!important;margin:0 0 6px!important;box-sizing:border-box!important;border-radius:10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-shadow:none!important;line-height:1!important;background:#dc2626!important;color:#fff!important;border:1px solid #dc2626!important}
@media(max-width:480px){body #teacherReqWizard .admin-grid-fields:has(>.teacherReqRemoveRow){grid-template-columns:minmax(0,1fr) 40px!important}body #teacherReqWizard .admin-grid-fields:has(>.teacherReqRemoveRow)>label{grid-column:1!important}body #teacherReqWizard .admin-grid-fields>.teacherReqRemoveRow{grid-column:2!important;grid-row:var(--remove-mobile-row,auto)!important}}
