/* SOS AB Payroll Admin — compact, responsive, accessible */
.hr-workspace{max-width:100%;display:grid;gap:15px}.hr-banner{position:relative;overflow:hidden;background:linear-gradient(115deg,#172f52,#244d74 58%,#0e697c);color:white;border-radius:18px;padding:24px;box-shadow:0 8px 26px #172f521d}.hr-banner h3{font-size:clamp(1.3rem,2.6vw,2rem);line-height:1.25;margin:6px 0}.hr-banner p{opacity:.9;margin:5px 0;font-size:.93rem}.hr-banner .eyebrow{color:#bde2ff}.hr-pill{display:inline-block;margin-top:10px;border:1px solid #fff5;padding:6px 11px;border-radius:22px;background:#ffffff14;font-size:.76rem}.hr-tabs{display:flex;gap:7px;overflow-x:auto;padding:3px 0 8px;scrollbar-width:thin}.hr-tab{border:1px solid #d7e2ed;white-space:nowrap;padding:11px 15px;border-radius:11px;background:#fff;color:#30485f;font-weight:700;cursor:pointer}.hr-tab.active{border-color:#214f76;background:#214f76;color:#fff}.hr-error{padding:13px 15px;border:1px solid #edb0ba;background:#fff4f4;color:#92303d;border-radius:10px}.hr-status{color:#486173;font-size:.84rem;min-height:10px}.hr-toolbar{display:flex;gap:14px;align-items:end;justify-content:space-between;flex-wrap:wrap;padding:15px;background:white;border-radius:13px;box-shadow:0 1px 6px #14304b12}.hr-toolbar label{font-weight:700;min-width:145px}.hr-toolbar-buttons{display:flex;flex-wrap:wrap;gap:7px}.hr-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:11px}.hr-kpi{border:1px solid #e0e9f0;border-left:4px solid #39688d;border-radius:13px;background:#fff;padding:14px;display:flex;flex-direction:column;gap:7px}.hr-kpi strong{font-size:1.25rem;color:#203b55}.hr-kpi span{color:#526b7f;font-size:.82rem}.hr-kpi.accent{border-left-color:#18967a}.hr-kpi.warning{border-left-color:#cc8a26}.hr-table{min-width:950px}.hr-table td{vertical-align:top}.hr-table td details{max-width:260px;font-size:.8rem}.hr-table td details div{padding:3px 0;border-top:1px solid #edf2f5}.hr-note{background:#eaf4fc;border:1px solid #c9deed;border-radius:11px;padding:11px 14px;color:#294d69;line-height:1.55;font-size:.87rem}.hr-edit-card{margin-top:10px;padding:20px}.hr-edit-card h3{color:#203953;margin-bottom:13px}.hr-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:12px}.hr-form-grid label,.hr-edit-card>label{display:flex;flex-direction:column;gap:6px;font-weight:650;font-size:.9rem;color:#374d5e}.hr-form-grid input,.hr-form-grid select,.hr-form-grid textarea,.hr-edit-card>label select,.hr-toolbar input{width:100%;min-height:42px;border:1px solid #ccd9e3;border-radius:8px;padding:9px;background:#fff;color:#183047;box-sizing:border-box}.hr-form-wide{grid-column:1/-1}.hr-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;padding:15px 0}.hr-check{display:flex;gap:10px;align-items:center;border:1px solid #e4eaf1;border-radius:10px;padding:11px;background:#f9fcff;font-weight:550}.hr-check input{width:18px;height:18px;accent-color:#17507b}.hr-workspace .btn:disabled{opacity:.46;cursor:not-allowed}@media(max-width:650px){.hr-banner{padding:18px}.hr-toolbar{align-items:stretch}.hr-toolbar-buttons{display:grid;grid-template-columns:1fr 1fr}.hr-toolbar-buttons .btn{white-space:normal}.hr-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hr-kpi strong{font-size:1rem}.hr-edit-card{padding:12px}.hr-form-grid{grid-template-columns:1fr}.hr-tab{padding:9px 11px}}
/* Prevent wide payroll tables from expanding the entire mobile viewport. */
.hr-workspace{grid-template-columns:minmax(0,1fr);width:100%;min-width:0;overflow:hidden;box-sizing:border-box}.hr-workspace>*{min-width:0;max-width:100%;box-sizing:border-box}.hr-workspace .table-wrap{min-width:0;max-width:100%;width:100%;overflow-x:auto;overscroll-behavior-x:contain}.hr-toolbar{min-width:0}.hr-toolbar-buttons{min-width:0}
@media(max-width:650px){.hr-toolbar{display:block}.hr-toolbar label{display:block;margin-bottom:12px}.hr-toolbar-buttons{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.hr-toolbar-buttons .btn{min-width:0;white-space:normal;padding:10px 5px}.hr-banner h3{font-size:1.35rem}}
