.employee-onboarding{margin:0;background:#f3f4f6;color:#26323b;font-family:Arial,sans-serif}.employee-onboarding header{background:#000;color:white;display:flex;gap:22px;align-items:center;padding:22px max(22px,calc((100vw - 820px)/2));border-bottom:3px solid #cba751}.employee-onboarding header img{width:70px;height:88px;object-fit:contain}.employee-onboarding h1{font-size:20px;line-height:1.4;margin:0}.employee-onboarding h1 small{font-size:16px;font-weight:400}.employee-onboarding header p{font-size:12px;color:#b5bfc8}.employee-onboarding main{max-width:820px;margin:24px auto;background:white;padding:28px;box-sizing:border-box;border-radius:8px}.employee-onboarding h2{font-size:24px}.employee-onboarding p{line-height:1.55}.employee-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.employee-grid label{display:flex;flex-direction:column;gap:8px;font-size:14px}.employee-grid input,.employee-grid textarea{font:inherit;border:1px solid #b8c2cc;border-radius:5px;padding:12px;min-width:0;background:#fff;color:#172733}.employee-grid .wide{grid-column:1/-1}.employee-grid textarea{min-height:90px}.employee-actions{display:flex;gap:12px;flex-wrap:wrap}.employee-onboarding button{padding:12px 18px;border:1px solid #a5aeb9;background:#fff;border-radius:5px;cursor:pointer;font:inherit}.employee-onboarding button.primary{background:#000;color:#fff;border-color:#cba751}.employee-onboarding button:disabled{opacity:.5;cursor:wait}.employee-onboarding footer{margin-top:32px;border-top:1px solid #dfe5e9;padding-top:18px;color:#6b7782;font-size:12px}#return-note{padding:14px;background:#f5f0e5;border-left:3px solid #cba751;margin:18px 0;white-space:pre-wrap}#onboarding-message{padding:12px;background:#f4f5f6;white-space:pre-wrap}.hr-invitation-dialog{max-width:900px;width:min(92vw,900px);max-height:85vh;overflow:auto;background:#101925;color:#edf2f7;border:1px solid #cba751;border-radius:10px;padding:24px}.hr-invitation-dialog::backdrop{background:#0009}.hr-invitation-dialog input,.hr-invitation-dialog textarea{width:100%;box-sizing:border-box;padding:10px;margin:10px 0;font:inherit}.hr-invitation-dialog table{width:100%;border-collapse:collapse}.hr-invitation-dialog td,.hr-invitation-dialog th{padding:9px;border-bottom:1px solid #405064;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere}.hr-invitation-dialog .hr-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.hr-onboarding-panel{margin-top:22px}.hr-onboarding-panel td{overflow-wrap:anywhere}.hr-onboarding-panel .hr-controls{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.hr-onboarding-panel select{max-width:400px}.hr-onboarding-state{font-weight:bold}@media(max-width:600px){.employee-grid{grid-template-columns:1fr}.employee-onboarding main{margin:12px;padding:20px}.employee-onboarding h1{font-size:16px}.employee-onboarding h1 small{font-size:13px}.employee-onboarding header{gap:14px}.hr-invitation-dialog{padding:12px}}
/* Staff profile: contained mobile form, persistent actions and adjustable desktop window. */
#edit-staff-modal{height:100dvh;padding:12px;overflow:hidden}
#edit-staff-modal .modal-container{width:min(860px,100%);max-width:100%!important;height:min(900px,calc(100dvh - 24px));max-height:calc(100dvh - 24px)!important;min-width:min(320px,100%);min-height:280px;background:var(--bg-surface,#202333);border:1px solid var(--border-color,#444);border-radius:14px;overflow:hidden;resize:both;box-shadow:0 20px 80px #0008}
#edit-staff-modal .modal-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 auto;padding:14px 16px;border-bottom:1px solid var(--border-color,#444)}
#edit-staff-modal .modal-title{font-size:18px;font-weight:600}
#edit-staff-modal .hr-profile-window-controls{display:flex;gap:8px;flex-shrink:0}
#edit-staff-modal .modal-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:16px!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#edit-staff-form>div[style*="grid-template-columns"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#edit-staff-form .form-group{min-width:0}
#edit-staff-form input,#edit-staff-form select,#edit-staff-form textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
#edit-staff-form textarea{resize:vertical;min-height:72px}
#edit-staff-form .hr-department-choices{flex-wrap:wrap}
#edit-staff-modal .hr-profile-footer{flex:0 0 auto;padding:12px 16px;background:var(--bg-surface,#202333);border-top:1px solid var(--border-color,#444)}
#edit-staff-modal #staff-edit-status:empty{display:none}
#edit-staff-modal #staff-edit-status{margin:0 0 10px;line-height:1.5;overflow-wrap:anywhere}
#edit-staff-modal .hr-profile-action-row,#edit-staff-modal .hr-profile-buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#edit-staff-modal .hr-profile-action-row{justify-content:space-between}
#edit-staff-modal button{min-height:44px}
#edit-staff-modal.hr-profile-expanded{padding:0}
#edit-staff-modal.hr-profile-expanded .modal-container{width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0;resize:none}
@media(max-width:600px){#edit-staff-modal{padding:8px}#edit-staff-modal .modal-container{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)!important;resize:none}#edit-staff-form>div[style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr)!important}#edit-staff-form input,#edit-staff-form select,#edit-staff-form textarea{font-size:16px}#edit-staff-modal .modal-header,#edit-staff-modal .hr-profile-footer{padding:10px 12px}#edit-staff-modal .hr-profile-buttons{flex:1;justify-content:flex-end}#edit-staff-modal .hr-profile-action-row>[data-staff-password]{flex:1 1 100%}#edit-staff-modal .hr-profile-buttons .btn{flex:1}}
