
/* Same single-row executive header as the customer at desktop sizes, where controls fit. */
#portalWorkspace .p-top.v195-executive-header.v198-compact-header,
#portalWorkspace .p-top.v195-executive-header.v196-staff-header.v198-compact-header {
  display:grid!important;
  grid-template-columns:108px minmax(120px,1fr) auto!important;
  grid-template-rows:auto!important;
  column-gap:clamp(10px,1.3vw,22px)!important;
  row-gap:0!important;
  min-height:90px!important;
  padding:10px clamp(14px,2vw,26px)!important;
  align-items:center!important;
}
#portalWorkspace .p-top.v198-compact-header > .v195-header-logo {
  grid-column:1!important;grid-row:1!important;
  width:102px!important;height:65px!important;
}
#portalWorkspace .p-top.v198-compact-header > .v195-header-centre {
  grid-column:2!important;grid-row:1!important;
  min-width:0!important;width:100%!important;
}
#portalWorkspace .p-top.v198-compact-header > .p-top-right,
#portalWorkspace .p-top.v195-executive-header.v196-staff-header.v198-compact-header > .p-top-right {
  grid-column:3!important;grid-row:1!important;
  width:auto!important;min-width:0!important;max-width:none!important;
  display:flex!important;align-items:center!important;
  justify-content:flex-end!important;flex-wrap:nowrap!important;gap:9px!important;
}
#portalWorkspace .p-top.v198-compact-header .p-top-right .p-button,
#portalWorkspace .p-top.v198-compact-header .p-top-right #v49ActivityButton {
  white-space:nowrap!important;
  min-height:39px!important;
  padding:8px 13px!important;
  font-size:12px!important;
  box-shadow:none!important;
}
#portalWorkspace .p-top.v198-compact-header .p-top-right #v121HeaderActions {min-height:39px!important;}
#portalWorkspace .p-top.v198-compact-header .p-top-right > button[onclick*="pLogout"] {
  order:100!important;
  border-color:#8eafc9!important;
  font-weight:780!important;
}
#portalWorkspace .p-top.v198-compact-header .p-top-right #v49Activity {order:50!important;}
#portalWorkspace .p-top.v198-compact-header .p-top-right #v121HeaderActions {order:20!important;}
#portalWorkspace .p-top.v198-compact-header .p-top-right .p-review-label,
#portalWorkspace .p-top.v198-compact-header .p-top-right #m39controls {display:none!important;}
/* Move test controls away from everyday header, not out of the offline test tool. */
#portalWorkspace .v198-review-tools {
  border-top:1px solid #375473;margin:18px 3px 8px;
  color:#aac9df;font-size:11px;
}
#portalWorkspace .v198-review-tools > summary {
  cursor:pointer;list-style:none;display:flex;align-items:center;gap:9px;
  padding:12px 9px;border-radius:7px;font-size:12px;font-weight:750;
  color:#a9cde6;
}
#portalWorkspace .v198-review-tools > summary::-webkit-details-marker {display:none}
#portalWorkspace .v198-review-tools > summary:before{content:'⚙';color:#87bedf;font-size:14px}
#portalWorkspace .v198-review-tools > summary:after{content:'⌄';margin-left:auto}
#portalWorkspace .v198-review-tools[open] > summary:after{content:'⌃'}
#portalWorkspace .v198-review-tools > summary:hover,#portalWorkspace .v198-review-tools > summary:focus-visible{background:#193a58;outline-offset:2px}
#portalWorkspace .v198-review-panel{padding:7px 8px 12px;display:grid;gap:12px;}
#portalWorkspace .v198-review-panel .m39-switches{display:grid!important;gap:9px;width:100%}
#portalWorkspace .v198-review-panel .m39-switch-label,
#portalWorkspace .v198-review-panel .p-review-label{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:6px!important;color:#b4d0e3!important;font-size:10px!important;
  width:100%!important;min-width:0!important;
}
#portalWorkspace .v198-review-panel select{
  background:#14354f!important;color:#f3faff!important;
  border:1px solid #577995!important;border-radius:7px!important;
  min-width:0!important;width:100%!important;max-width:100%!important;
  height:auto!important;min-height:36px;padding:7px 5px!important;
  font-size:11px!important;
}
#portalWorkspace .v198-review-panel .m39-saved{display:none}
#portalWorkspace .v198-review-help{font-size:10px;line-height:1.45;color:#9cb8cf;margin:0}
/* At laptop/tablet widths let operational controls occupy a compact second row; no demo selectors. */
@media(max-width:1260px){
 #portalWorkspace .p-top.v195-executive-header.v198-compact-header,
 #portalWorkspace .p-top.v195-executive-header.v196-staff-header.v198-compact-header {
   grid-template-columns:95px minmax(0,1fr)!important;
   grid-template-rows:auto auto!important;
   row-gap:8px!important;min-height:101px!important;
 }
 #portalWorkspace .p-top.v198-compact-header > .v195-header-logo {grid-column:1!important;grid-row:1!important;width:89px!important;height:58px!important;}
 #portalWorkspace .p-top.v198-compact-header > .v195-header-centre {grid-column:2!important;grid-row:1!important;}
 #portalWorkspace .p-top.v198-compact-header > .p-top-right,
 #portalWorkspace .p-top.v195-executive-header.v196-staff-header.v198-compact-header > .p-top-right {grid-column:1/-1!important;grid-row:2!important;width:100%!important;justify-content:flex-end!important;}
}
@media(max-width:540px){
 #portalWorkspace .p-top.v195-executive-header.v198-compact-header,
 #portalWorkspace .p-top.v195-executive-header.v196-staff-header.v198-compact-header{
   grid-template-columns:72px minmax(0,1fr)!important;padding:9px 11px!important;gap:8px!important;
 }
 #portalWorkspace .p-top.v198-compact-header > .v195-header-logo{width:68px!important;height:52px!important;}
 #portalWorkspace .p-top.v198-compact-header > .p-top-right {gap:6px!important;justify-content:flex-end!important;flex-wrap:wrap!important;}
 #portalWorkspace .p-top.v198-compact-header .p-top-right #v49ActivityButton .v49-text{display:none!important;}
 #portalWorkspace .p-top.v198-compact-header .p-top-right button {font-size:11px!important;padding:7px 9px!important;min-height:35px!important;}
}
@media print { #portalWorkspace .v198-review-tools{display:none!important} }
