/* MySTS v240 staff-only visual cleanup, authoritative records and actions unchanged. */
#portalWorkspace.sts240-staff .p-top.v195-executive-header.v198-compact-header,
#portalWorkspace.sts240-staff .p-top.v195-executive-header.v196-staff-header.v198-compact-header{
 min-height:68px!important;padding:6px clamp(12px,1.7vw,24px)!important;
 grid-template-columns:76px minmax(110px,1fr) auto!important;
 grid-template-rows:auto!important;align-items:center!important;row-gap:0!important;
 column-gap:12px!important
}
#portalWorkspace.sts240-staff .p-top.v198-compact-header>.v195-header-logo{
 grid-column:1!important;grid-row:1!important;width:76px!important;height:47px!important;
 max-height:47px!important;object-fit:contain!important
}
#portalWorkspace.sts240-staff .p-top.v198-compact-header>.v195-header-centre{
 grid-column:2!important;grid-row:1!important;min-width:0!important
}
#portalWorkspace.sts240-staff .p-top.v198-compact-header>.p-top-right{
 grid-column:3!important;grid-row:1!important;justify-content:flex-end!important;
 flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;
 width:auto!important;padding:0!important
}
#portalWorkspace.sts240-staff .p-top.v198-compact-header .p-top-right button[onclick*="pLogout"]{
 min-height:34px!important;padding:6px 11px!important;white-space:nowrap!important
}
#portalWorkspace.sts240-instructor-glance #pContent #sts211Dash,
#portalWorkspace.sts240-instructor-glance #pContent #sts225Quick,
#portalWorkspace.sts240-instructor-glance #pContent .v42-title .v42-toolbar,
#portalWorkspace.sts240-instructor-glance #pContent .sts218-glance-note,
#portalWorkspace.sts240-instructor-orders #pContent #sts225Quick,
#portalWorkspace.sts240-instructor-customers #pContent #sts225Quick{display:none!important}
#portalWorkspace.sts240-instructor-glance #pContent{padding-top:12px!important}
#portalWorkspace.sts240-instructor-glance #pContent .v42-kpis{margin-top:4px!important}
#portalWorkspace.sts240-instructor-orders #pContent{padding-top:10px!important}
#portalWorkspace.sts240-instructor-orders .sts218-shell{max-width:none!important}
#portalWorkspace.sts240-instructor-orders .sts218-head{margin:0 0 10px!important}
#portalWorkspace.sts240-instructor-orders .sts218-head .p-eyebrow{display:none!important}
#portalWorkspace.sts240-instructor-orders .sts218-head h1{margin:0 0 4px!important;font-size:25px!important}
#portalWorkspace.sts240-instructor-orders .sts218-head p{font-size:12px!important}
#portalWorkspace.sts240-instructor-orders .sts240-orders-toolbar{
 display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;
 flex-wrap:wrap!important;border:1px solid #d8e5ed;border-left:3px solid #ca2844;
 background:#f7fafc;border-radius:9px;padding:8px 10px!important;margin:5px 0 10px!important
}
#portalWorkspace.sts240-instructor-orders .sts240-orders-toolbar .sts218-print{
 display:flex!important;align-items:center!important;gap:5px!important;flex:0 0 auto;margin:0!important
}
#portalWorkspace.sts240-instructor-orders .sts240-orders-toolbar .sts218-filter{
 display:flex!important;align-items:end!important;flex:1 1 auto!important;justify-content:flex-end!important;
 gap:6px!important;border:0!important;background:transparent!important;
 padding:0!important;margin:0!important;flex-wrap:wrap!important
}
#portalWorkspace.sts240-instructor-orders .sts240-orders-toolbar .sts218-filter label{
 font-size:10px!important;gap:2px!important;flex:0 1 135px!important;min-width:110px!important
}
#portalWorkspace.sts240-instructor-orders .sts240-orders-toolbar .sts218-filter input{
 width:100%!important;min-height:32px!important;max-width:145px!important;
 height:32px!important;padding:3px 6px!important;font-size:11px!important
}
#portalWorkspace.sts240-instructor-orders .sts240-orders-toolbar button{
 min-height:32px!important;padding:5px 8px!important;font-size:10px!important;white-space:nowrap!important
}
#portalWorkspace.sts240-instructor-orders .sts240-orders-toolbar .sts218-print-label{font-size:11px!important}
#portalWorkspace.sts240-instructor-orders .sts218-viewtabs{margin:8px 0!important}
#portalWorkspace.sts240-instructor-orders .sts218-statushelp{display:none!important}
#portalWorkspace.sts240-instructor-customers #pContent{padding-top:12px!important}
#portalWorkspace.sts240-instructor-customers #pContent>.p-eyebrow{display:none!important}
#portalWorkspace.sts240-instructor-customers #pContent>.v42-privacy{display:none!important}
#hrApp.sts240-instructor-hr .hero:has(h2){display:none!important}
#hrApp.sts240-instructor-hr .v67-hr-tiles.sts240-hr-tiles{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
#hrApp.sts240-instructor-hr .sts240-hr-tiles .sts240-extra-tile{
 min-height:120px;border:1px solid #d8e4ee;border-radius:12px;background:#fff;padding:14px;
 margin:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px
}
#hrApp.sts240-instructor-hr .sts240-extra-tile button{margin-top:auto!important;align-self:flex-start}
@media(max-width:1450px){
 #portalWorkspace.sts240-instructor-orders .sts240-orders-toolbar{justify-content:flex-start!important}
 #portalWorkspace.sts240-instructor-orders .sts240-orders-toolbar .sts218-filter{justify-content:flex-start!important}
}
@media(max-width:900px){
 #hrApp.sts240-instructor-hr .v67-hr-tiles.sts240-hr-tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:800px){
 #portalWorkspace.sts240-staff .p-top.v195-executive-header.v198-compact-header,
 #portalWorkspace.sts240-staff .p-top.v195-executive-header.v196-staff-header.v198-compact-header{
  min-height:65px!important;grid-template-columns:58px minmax(80px,1fr) auto!important;padding:7px 11px!important
 }
 #portalWorkspace.sts240-staff .p-top.v198-compact-header>.v195-header-logo{width:56px!important;height:40px!important}
}
@media(max-width:620px){
 #portalWorkspace.sts240-staff .p-top.v195-executive-header.v198-compact-header,
 #portalWorkspace.sts240-staff .p-top.v195-executive-header.v196-staff-header.v198-compact-header{
  grid-template-columns:48px minmax(0,1fr) auto!important;gap:6px!important
 }
 #portalWorkspace.sts240-staff .p-top.v198-compact-header>.v195-header-logo{width:44px!important;height:36px!important}
 #portalWorkspace.sts240-instructor-orders .sts240-orders-toolbar .sts218-print{flex-wrap:wrap}
 #hrApp.sts240-instructor-hr .v67-hr-tiles.sts240-hr-tiles{grid-template-columns:1fr!important}
}
/* v241: Instructor Training Hub opens on uncluttered tiles, no duplicate navy banner. */
#portalWorkspace.sts240-instructor #stsHubShell.sts241-instructor-hub>.sth-top{display:none!important}
#portalWorkspace.sts240-instructor #stsHubShell.sts241-instructor-hub>.sts234-focus{padding:8px 11px!important;margin:4px 0 12px!important;background:transparent!important;border:0!important;border-radius:0!important}
#portalWorkspace.sts240-instructor #stsHubShell.sts241-instructor-hub .sts234-back{font-size:12px!important}
#portalWorkspace.sts240-instructor #stsHubShell.sts241-instructor-hub[data-sts234-mode="home"]>.sts234-hub-tiles{display:grid!important;margin-top:9px!important}
#portalWorkspace.sts240-instructor #stsHubShell.sts241-instructor-hub[data-sts234-mode="home"]>.sth-card{display:none!important}
#portalWorkspace.sts240-instructor #stsHubShell.sts241-instructor-hub[data-sts234-mode="home"]>.sts234-focus{display:none!important}
#portalWorkspace.sts240-instructor #stsHubShell.sts241-instructor-hub[data-sts234-mode="detail"]>.sts234-hub-tiles{display:none!important}
#portalWorkspace.sts240-instructor #stsHubShell.sts241-instructor-hub>.sth-tabs{display:none!important}
#portalWorkspace.sts240-instructor #stsHubShell.sts241-instructor-hub{padding-top:8px!important}
#portalWorkspace.sts240-instructor-glance #pContent .sts241-welcome{font-size:22px!important;line-height:1.3;font-weight:800;color:#153c62;margin:2px 0 12px}
#hrApp.sts240-instructor-hr .sts241-merged-original{display:none!important}
#hrApp.sts240-instructor-hr .sts241-work-pane{margin-top:12px}
#hrApp.sts240-instructor-hr .sts241-work-pane[hidden]{display:none!important}
#hrApp.sts240-instructor-hr .sts241-work-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:12px}
#hrApp.sts240-instructor-hr .sts241-work-head h2{margin:0 0 5px;color:#164d7c;font-size:20px}
#hrApp.sts240-instructor-hr .sts241-work-head p{margin:0;font-size:12px;color:#5c778b}
#hrApp.sts240-instructor-hr .sts241-back{border:1px solid #c6dce9;border-radius:8px;background:white;color:#164b74;padding:9px 13px;font-size:12px;font-weight:700;cursor:pointer}
#hrApp.sts240-instructor-hr .sts241-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#hrApp.sts240-instructor-hr .sts241-work-grid>.v67-hr-tile{min-height:140px}
#hrApp.sts240-instructor-hr .v67-reminders-wrap[hidden]{display:none!important}
@media(max-width:650px){#hrApp.sts240-instructor-hr .sts241-work-grid{grid-template-columns:1fr}#hrApp.sts240-instructor-hr .sts241-work-head{flex-wrap:wrap}}

/* v242 coherent staff header and ordered instructor menu */
#portalWorkspace.sts240-instructor .p-sidebar{display:flex!important;flex-direction:column!important}
#portalWorkspace.sts240-instructor .p-sidebar .sts242-instructor-menu{flex-shrink:0}
#portalWorkspace.sts240-instructor .p-sidebar button[id="sts240TrainingOps"]{order:1!important}
#portalWorkspace.sts240-instructor .p-sidebar button[title*="Check Availability"]{display:none!important}
#portalWorkspace.sts240-instructor .p-sidebar button[aria-label*="Check Availability"]{display:none!important}
#portalWorkspace.sts240-staff .p-top.v198-compact-header,
#portalWorkspace.sts240-staff .p-top.v195-executive-header.v198-compact-header,
#portalWorkspace.sts240-staff .p-top.v195-executive-header.v196-staff-header.v198-compact-header{
 min-height:82px!important;max-height:94px!important;padding:7px 22px!important;
 grid-template-columns:118px minmax(100px,1fr) auto!important;grid-template-rows:1fr!important;
 align-items:center!important;column-gap:12px!important
}
#portalWorkspace.sts240-staff .p-top.v198-compact-header>.v195-header-logo{
 width:114px!important;max-width:114px!important;height:66px!important;max-height:66px!important;
 object-fit:contain!important;align-self:center!important
}
#portalWorkspace.sts240-staff .p-top.v198-compact-header>.v195-header-centre{
 grid-column:2!important;grid-row:1!important;align-self:center!important;text-align:center!important;
 justify-self:center!important
}
#portalWorkspace.sts240-staff .p-top.v198-compact-header .p-top-right{
 grid-column:3!important;grid-row:1!important;align-self:center!important;justify-self:end!important;
 display:flex!important;align-items:center!important;margin:0!important
}
#portalWorkspace.sts240-instructor #stsHubShell.sts241-instructor-hub .sth-top{display:none!important}
#portalWorkspace.sts240-instructor #stsHubShell.sts241-instructor-hub[data-sts234-mode="home"] .sts234-hub-tiles{
 display:grid!important;visibility:visible!important;opacity:1!important
}
#portalWorkspace.sts240-instructor #stsHubShell.sts241-instructor-hub[data-sts234-mode="home"] .sth-card{display:none!important}
@media(max-width:800px){
 #portalWorkspace.sts240-staff .p-top.v198-compact-header{min-height:70px!important;max-height:none!important;grid-template-columns:78px minmax(65px,1fr) auto!important;padding:5px 10px!important}
 #portalWorkspace.sts240-staff .p-top.v198-compact-header>.v195-header-logo{width:77px!important;height:52px!important;max-height:52px!important}
}

/* v243 — HEADER ALIGNMENT ONLY.
   Replace legacy responsive two-row grid positioning with a single vertical axis.
   Keep the approved large staff STS logo and its current banner depth. */
#portalWorkspace .p-top.v195-executive-header.v198-compact-header,
#portalWorkspace .p-top.v195-executive-header.v196-staff-header.v198-compact-header{
  display:flex!important;
  position:relative!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  box-sizing:border-box!important;
  gap:12px!important;
  min-height:130px!important;
  height:130px!important;
  max-height:130px!important;
  padding:12px 20px!important;
}
#portalWorkspace .p-top.v195-executive-header.v198-compact-header > .v195-header-logo,
#portalWorkspace .p-top.v195-executive-header.v196-staff-header.v198-compact-header > .v195-header-logo{
  position:relative!important;
  flex:0 0 auto!important;
  align-self:center!important;
  width:142px!important;
  height:90px!important;
  max-width:142px!important;
  max-height:90px!important;
  margin:0!important;
}
#portalWorkspace .p-top.v195-executive-header.v198-compact-header > .v195-header-centre,
#portalWorkspace .p-top.v195-executive-header.v196-staff-header.v198-compact-header > .v195-header-centre{
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  width:auto!important;
  min-width:0!important;
  max-width:calc(100% - 430px)!important;
  margin:0!important;
  text-align:center!important;
  align-self:center!important;
}
#portalWorkspace .p-top.v195-executive-header.v198-compact-header > .p-top-right,
#portalWorkspace .p-top.v195-executive-header.v196-staff-header.v198-compact-header > .p-top-right{
  position:static!important;
  top:auto!important;
  bottom:auto!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  display:flex!important;
  flex:0 0 auto!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  align-self:center!important;
  justify-content:flex-end!important;
  margin:0 0 0 auto!important;
  padding:0!important;
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  max-width:40%!important;
  gap:8px!important;
}
#portalWorkspace .p-top.v195-executive-header.v198-compact-header > .p-top-right > button[onclick*="pLogout"],
#portalWorkspace .p-top.v195-executive-header.v196-staff-header.v198-compact-header > .p-top-right > button[onclick*="pLogout"]{
  position:static!important;
  align-self:center!important;
  flex:0 0 auto!important;
  margin:0!important;
  white-space:nowrap!important;
}
/* The customer header retains its previously approved compact height and badge sizing. */
#portalWorkspace.sts233-customer .p-top.v195-executive-header.v198-compact-header{
  height:68px!important;
  min-height:68px!important;
  max-height:68px!important;
  padding:6px 20px!important;
}
#portalWorkspace.sts233-customer .p-top.v195-executive-header.v198-compact-header > .v195-header-logo{
  width:76px!important;height:47px!important;max-width:76px!important;max-height:47px!important;
}
#portalWorkspace.sts233-customer .p-top.v195-executive-header.v198-compact-header > .v195-header-centre{
  max-width:calc(100% - 330px)!important;
}
@media(max-width:800px){
  #portalWorkspace .p-top.v195-executive-header.v198-compact-header,
  #portalWorkspace .p-top.v195-executive-header.v196-staff-header.v198-compact-header{
    height:85px!important;min-height:85px!important;max-height:85px!important;
    padding:8px 10px!important;gap:6px!important;
  }
  #portalWorkspace .p-top.v195-executive-header.v198-compact-header > .v195-header-logo,
  #portalWorkspace .p-top.v195-executive-header.v196-staff-header.v198-compact-header > .v195-header-logo{
    width:77px!important;height:58px!important;max-width:77px!important;max-height:58px!important;
  }
  #portalWorkspace .p-top.v195-executive-header.v198-compact-header > .v195-header-centre,
  #portalWorkspace .p-top.v195-executive-header.v196-staff-header.v198-compact-header > .v195-header-centre{
    max-width:calc(100% - 195px)!important;
  }
  #portalWorkspace .p-top.v195-executive-header.v198-compact-header .p-top-right button{
    padding:6px 9px!important;font-size:11px!important;
  }
  #portalWorkspace.sts233-customer .p-top.v195-executive-header.v198-compact-header{
    height:68px!important;min-height:68px!important;max-height:68px!important;
  }
  #portalWorkspace.sts233-customer .p-top.v195-executive-header.v198-compact-header > .v195-header-logo{
    width:56px!important;height:40px!important;max-width:56px!important;max-height:40px!important;
  }
}

/* v244 — Instructor HR summary after Training Work; no duplicate HR overview. */
#portalWorkspace.sts240-instructor #pContent .sts244-hr-summary{margin:16px 0 20px;padding-top:15px;border-top:1px solid #d5e3ed;color:#174361}
#portalWorkspace.sts240-instructor #pContent .sts244-hr-summary>h2{font-size:19px;font-weight:800;margin:0 0 12px;color:#163f64}
#portalWorkspace.sts240-instructor #pContent .sts244-hr-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
#portalWorkspace.sts240-instructor #pContent .sts244-hr-card{min-width:0;min-height:105px;padding:14px;border:1px solid #d7e4ef;background:#f5f9fc;border-radius:11px;display:flex;flex-direction:column;text-align:left;align-items:flex-start;gap:5px;color:#214e71;cursor:pointer;font-family:inherit}
#portalWorkspace.sts240-instructor #pContent .sts244-hr-card:hover,#portalWorkspace.sts240-instructor #pContent .sts244-hr-card:focus-visible{border-color:#197ab4;background:#eaf5fc;outline-offset:2px}
#portalWorkspace.sts240-instructor #pContent .sts244-hr-label{font-size:12px;font-weight:750}
#portalWorkspace.sts240-instructor #pContent .sts244-hr-value{font-size:24px;line-height:1.1;font-weight:850;color:#164d7f}
#portalWorkspace.sts240-instructor #pContent .sts244-hr-card small{font-size:11px;color:#607e96}
#portalWorkspace.sts240-instructor #pContent .sts244-reminders{margin-top:13px;border:1px solid #d9e5ed;border-radius:11px;background:#fff;padding:14px}
#portalWorkspace.sts240-instructor #pContent .sts244-reminders h3{font-size:16px;margin:0 0 10px;color:#184665}
#portalWorkspace.sts240-instructor #pContent .sts244-reminder{display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid #e3ecf2;padding:10px 0;font-size:12px}
#portalWorkspace.sts240-instructor #pContent .sts244-reminder[hidden]{display:none!important}
#portalWorkspace.sts240-instructor #pContent .sts244-reminder:last-child{border-bottom:0}
#portalWorkspace.sts240-instructor #pContent .sts244-reminder strong,#portalWorkspace.sts240-instructor #pContent .sts244-reminder small{display:block}
#portalWorkspace.sts240-instructor #pContent .sts244-reminder small{color:#667f92;margin-top:3px}
#portalWorkspace.sts240-instructor #pContent .sts244-reminder-action,#portalWorkspace.sts240-instructor #pContent .sts244-more{border:1px solid #d1e1eb;border-radius:8px;color:#15547b;background:#f6fafd;padding:7px 11px;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
#portalWorkspace.sts240-instructor #pContent .sts244-more{margin-top:10px}
#portalWorkspace.sts240-instructor #pContent .sts244-empty{font-size:12px;color:#6c8191;margin:6px 0}
#hrApp.sts244-hr-overview #content .stats,#hrApp.sts244-hr-overview #content .v67-reminders-wrap{display:none!important}
#portalWorkspace.sts240-instructor #pContent.sts244-instructor-customers #sts183TeamCard,
#portalWorkspace.sts240-instructor #pContent.sts244-instructor-customers #sts225Quick{display:none!important}
@media(max-width:900px){#portalWorkspace.sts240-instructor #pContent .sts244-hr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){#portalWorkspace.sts240-instructor #pContent .sts244-hr-grid{grid-template-columns:1fr}#portalWorkspace.sts240-instructor #pContent .sts244-reminder{flex-wrap:wrap}}
