/* MySTS v335 — minimal shared HR register with legible dark and light surfaces. */
#portalWorkspace #pContent .sts335-wrap{display:grid;gap:15px;width:100%;color:#244054}
#portalWorkspace #pContent .sts335-header{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #c7d9e6;border-left:4px solid #1599de;border-radius:12px;padding:18px 20px;background:#eef5fa}
#portalWorkspace #pContent .sts335-header h1{margin:3px 0 7px;font-size:22px;line-height:1.2}
#portalWorkspace #pContent .sts335-header p,#portalWorkspace #pContent .sts335-panel p{margin:0 0 10px;font-size:13px;line-height:1.5;color:#557487}
#portalWorkspace #pContent .sts335-kicker{font-size:10px;font-weight:800;letter-spacing:.13em;color:#12669b}
#portalWorkspace #pContent .sts335-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:14px}
#portalWorkspace #pContent .sts335-panel{border:1px solid #c9dce7;border-radius:12px;padding:18px;background:#fff;min-width:0}
#portalWorkspace #pContent .sts335-panel h2{font-size:16px;margin:0 0 10px}
#portalWorkspace #pContent .sts335-panel .sts335-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
#portalWorkspace #pContent .sts335-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#portalWorkspace #pContent .sts335-form>button[type=submit]{grid-column:1/-1;justify-self:start}
#portalWorkspace #pContent .sts335-inline{display:flex;align-items:end;gap:12px;margin-top:16px}
#portalWorkspace #pContent .sts335-wrap label{display:grid;gap:5px;font-size:12px;font-weight:700}
#portalWorkspace #pContent .sts335-wrap input,#portalWorkspace #pContent .sts335-wrap select{width:100%;min-width:0;min-height:38px;border:1px solid #9eb9cc;border-radius:7px;background:#f8fbfd;color:#18364a;padding:7px 10px;font:inherit;font-size:13px}
#portalWorkspace #pContent .sts335-primary,#portalWorkspace #pContent .sts335-secondary{border-radius:8px;cursor:pointer;border:1px solid #327aa9;min-height:36px;padding:8px 12px;font-weight:750;font-size:12px;white-space:nowrap}
#portalWorkspace #pContent .sts335-primary{background:#167fc1;color:#fff}
#portalWorkspace #pContent .sts335-secondary{background:#e6f2f9;color:#164764}
#portalWorkspace #pContent .sts335-wrap button:disabled{opacity:.5;cursor:not-allowed}
#portalWorkspace #pContent .sts335-wrap button:focus-visible,#portalWorkspace #pContent .sts335-wrap input:focus-visible,#portalWorkspace #pContent .sts335-wrap select:focus-visible{outline:3px solid #50b9f8;outline-offset:2px}
#portalWorkspace #pContent .sts335-notice{padding:10px 12px;background:#e6f4fa;border:1px solid #b9d7e6;border-radius:8px;font-size:12px}
#portalWorkspace #pContent .sts335-notice.error{background:#fff2f3;color:#9d2236;border-color:#dd8b98}
#portalWorkspace #pContent .sts335-chips{display:flex;gap:8px;flex-wrap:wrap}
#portalWorkspace #pContent .sts335-chips>span{background:#e7f1f8;border:1px solid #bdd9ea;border-radius:7px;padding:7px 11px;font-size:12px}
#portalWorkspace #pContent .sts335-table-wrap{overflow:auto;max-width:100%}
#portalWorkspace #pContent .sts335-table-wrap table{width:100%;border-collapse:collapse;font-size:12px}
#portalWorkspace #pContent .sts335-table-wrap th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#3a607a;padding:11px;border-bottom:2px solid #bdd4e3}
#portalWorkspace #pContent .sts335-table-wrap td{padding:10px 11px;border-bottom:1px solid #e0eaf0;vertical-align:middle}
#portalWorkspace #pContent .sts335-table-wrap td small{display:block;font-size:10px;color:#66808e;margin-top:3px}
#portalWorkspace #pContent .sts335-linked{color:#18784c;font-weight:700}
#portalWorkspace #pContent .sts335-muted{color:#637c8c}
#portalWorkspace #pContent .sts335-dialog{width:min(540px,calc(100% - 24px));padding:22px;border:1px solid #7ca8c0;border-radius:14px;box-shadow:0 12px 55px #0007;background:#fff;color:#17364b}
#portalWorkspace #pContent .sts335-dialog::backdrop{background:rgba(6,15,27,.72)}
#portalWorkspace #pContent .sts335-dialog h2{margin:0 0 14px}
#portalWorkspace #pContent .sts335-dialog .sts335-form{margin:12px 0}
#portalWorkspace #pContent .sts335-dialog #sts335-dialog-close{margin-top:16px}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-wrap{color:#eff8ff}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-header{background:#273e53;border-color:#688ba5}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-header h1{color:#f7fbff}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-kicker{color:#99dafa}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-header p,#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-panel p{color:#c9ddeb}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-panel{background:#1e3347;border-color:#49697f}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-panel h2{color:#fff}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-wrap input,#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-wrap select{background:#152638;color:#f5fbff;border-color:#688da6}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-secondary{background:#335773;color:#f4fbff;border-color:#79a5c4}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-primary{background:#166fa8;color:white;border-color:#66b6eb}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-notice{background:#233e55;border-color:#668ba4;color:#e8f6ff}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-notice.error{background:#593344;color:#ffe3e8;border-color:#f08fa1}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-chips>span{background:#28465c;border-color:#668da6;color:#e5f4ff}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-table-wrap th{color:#c0e2f4;border-color:#607e93}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-table-wrap td{color:#eff8ff;border-color:#3c5b71}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-table-wrap td small,#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-muted{color:#c3d6e4}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-linked{color:#98e6be}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-dialog{background:#21394d;color:#f0f8ff;border-color:#789eb5}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-dialog h2{color:#fff}
@media(max-width:900px){#portalWorkspace #pContent .sts335-grid{grid-template-columns:1fr}}
@media(max-width:620px){#portalWorkspace #pContent .sts335-header{flex-wrap:wrap}#portalWorkspace #pContent .sts335-form{grid-template-columns:1fr}#portalWorkspace #pContent .sts335-inline{flex-wrap:wrap}#portalWorkspace #pContent .sts335-table-wrap td,#portalWorkspace #pContent .sts335-table-wrap th{padding:8px}}

/* v336: use the agreed clickable employee profile tiles, with searchable departments. */
#portalWorkspace #pContent .sts335-filters{display:grid;grid-template-columns:minmax(200px,1fr) minmax(160px,240px);gap:12px;margin:12px 0 16px}
#portalWorkspace #pContent .sts335-employee-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#portalWorkspace #pContent .sts335-employee-card{border:1px solid #bdd5e3;border-left:4px solid #1599de;border-radius:10px;padding:12px;background:#f5f9fc;display:flex;flex-direction:column;gap:12px;min-width:0}
#portalWorkspace #pContent .sts335-employee-card:nth-child(3n+2){border-left-color:#d94750}
#portalWorkspace #pContent .sts335-profile-tile{cursor:pointer;text-align:left;background:transparent;border:0;width:100%;display:grid;gap:6px;color:#244054;padding:3px 2px}
#portalWorkspace #pContent .sts335-profile-tile strong{font-size:15px;overflow-wrap:anywhere}
#portalWorkspace #pContent .sts335-profile-tile span{font-size:12px}
#portalWorkspace #pContent .sts335-profile-tile small{font-size:11px;color:#58788e;overflow-wrap:anywhere}
#portalWorkspace #pContent .sts335-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
#portalWorkspace #pContent .sts335-profile-tile:hover strong{text-decoration:underline}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-employee-card{background:#263e52;border-color:#637f95}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-employee-card:nth-child(3n+2){border-left-color:#f16e76}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-profile-tile{color:#f5fbff}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-profile-tile small{color:#c8e0ef}
@media(max-width:1000px){#portalWorkspace #pContent .sts335-employee-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){#portalWorkspace #pContent .sts335-filters{grid-template-columns:1fr}#portalWorkspace #pContent .sts335-employee-grid{grid-template-columns:1fr}}


/* Employee details retain the approved card layout. The profile opens as a
   familiar read-only summary first; edits and removal are deliberate actions. */
#portalWorkspace #pContent .sts335-profile-detail{display:grid;gap:14px;min-width:0}
#portalWorkspace #pContent .sts335-profile-heading{display:flex;gap:12px;align-items:start;justify-content:space-between}
#portalWorkspace #pContent .sts335-profile-heading small{display:block;font-size:10px;letter-spacing:.1em;font-weight:800;color:#6b90a7}
#portalWorkspace #pContent .sts335-profile-heading h2{margin:3px 0 4px!important;font-size:22px}
#portalWorkspace #pContent .sts335-profile-heading p{margin:0}
#portalWorkspace #pContent .sts335-status{border-radius:99px;padding:5px 10px;font-weight:800;font-size:11px;border:1px solid #689bb1;white-space:nowrap}
#portalWorkspace #pContent .sts335-status.is-active{color:#08734a;background:#e5f7ee;border-color:#8ad4ae}
#portalWorkspace #pContent .sts335-status.is-leaver{color:#765f14;background:#fff4ce;border-color:#e1c972}
#portalWorkspace #pContent .sts335-profile-fields{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#portalWorkspace #pContent .sts335-profile-fields>div{padding:10px 12px;border:1px solid #d3e3ed;border-radius:9px;background:#f5f9fc;min-width:0}
#portalWorkspace #pContent .sts335-profile-fields dt{font-size:10px;color:#637f95;text-transform:uppercase;font-weight:800;letter-spacing:.05em}
#portalWorkspace #pContent .sts335-profile-fields dd{margin:4px 0 0;font-size:13px;font-weight:700;overflow-wrap:anywhere}
#portalWorkspace #pContent .sts335-profile-note{font-size:12px;line-height:1.5;color:#5a7789}
#portalWorkspace #pContent .sts335-profile-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
#portalWorkspace #pContent .sts335-danger{background:#ac273c;color:#fff;border:1px solid #d66e7b;min-height:36px;padding:8px 12px;border-radius:8px;font-weight:800;font-size:12px;cursor:pointer}
#portalWorkspace #pContent .sts335-danger:hover{background:#8d1d32}
#portalWorkspace #pContent .sts335-danger:focus-visible{outline:3px solid #6abdf0;outline-offset:2px}
#portalWorkspace #pContent .sts335-wide{grid-column:1/-1}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-profile-heading small,
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-profile-fields dt{color:#b3d8ed}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-profile-fields>div{background:#192b3c;border-color:#526f82}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-profile-fields dd{color:#f7fbff}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-profile-note{color:#c1d7e5}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-status.is-active{background:#164936;color:#c2f5da;border-color:#70b996}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-status.is-leaver{background:#534a29;color:#ffedb0;border-color:#a99559}
@media(max-width:540px){#portalWorkspace #pContent .sts335-profile-fields{grid-template-columns:1fr}}

/* v344: administrator employment status is informative, never an unauthorised editable control. */
#portalWorkspace #pContent .sts335-status-readonly{display:flex;flex-direction:column;gap:5px;justify-content:center;padding:9px 11px;border:1px solid #c2d7e5;border-radius:8px;background:#f2f7fb;min-width:0}
#portalWorkspace #pContent .sts335-status-readonly strong{font-size:12px;color:#204963}
#portalWorkspace #pContent .sts335-status-readonly span{font-size:14px;font-weight:800;color:#285573}
#portalWorkspace #pContent .sts335-status-readonly small{font-size:11px;line-height:1.4;color:#5c778b}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-status-readonly{background:#233e53;border-color:#62879d}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-status-readonly strong{color:#f5fbff}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-status-readonly span{color:#a8dbfc}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-status-readonly small{color:#c8dfea}


/* STS department management: compact actions, accessible inline rename. */
#portalWorkspace #pContent .sts335-department-list{display:grid;gap:9px;margin-bottom:14px}
#portalWorkspace #pContent .sts335-department-row{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:10px;padding:10px;border:1px solid #bdd9ea;border-radius:9px;background:#e7f1f8}
#portalWorkspace #pContent .sts335-department-summary{display:flex;flex-direction:column;gap:2px}
#portalWorkspace #pContent .sts335-department-summary small{opacity:.8}
#portalWorkspace #pContent .sts335-department-actions{display:flex;gap:6px}
#portalWorkspace #pContent .sts335-department-edit{flex-basis:100%;display:flex;align-items:end;flex-wrap:wrap;gap:9px;border-top:1px solid #bdd9ea;padding-top:9px}
#portalWorkspace #pContent .sts335-department-edit[hidden]{display:none}
#portalWorkspace #pContent .sts335-department-edit label{flex:1;min-width:180px}
#portalWorkspace #pContent .sts335-department-edit input{width:100%}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-department-row{background:#28465c;border-color:#668da6;color:#e5f4ff}
#portalWorkspace[data-sts-theme="dark"] #pContent .sts335-department-edit{border-color:#668da6}
