/* R456 — Premium design parity. A single additive presentation layer.
   Authenticated workspace ONLY; no data, auth, permissions, or API changes. */
body.saas-on .saas-workspace{
 --wlc-premium-navy:#102C4C;--wlc-premium-navy2:#173B60;
 --wlc-premium-orange:#F57436;--wlc-premium-bg:#F3F7FB;
 --wlc-premium-card:#FFFFFF;--wlc-premium-text:#173554;
 --wlc-premium-muted:#7189A2;--wlc-premium-line:#E0E9F2;
 --wlc-premium-green:#09835B;
 font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
 color:var(--wlc-premium-text);
}
body.saas-on .saas-workspace .saas-shell{grid-template-columns:204px minmax(0,1fr)!important}
body.saas-on .saas-workspace .saas-sidebar{width:204px!important;background:var(--wlc-premium-navy)!important;box-shadow:none!important}
body.saas-on .saas-workspace .saas-page,body.saas-on .saas-workspace .saas-main{background:var(--wlc-premium-bg)!important}
body.saas-on .saas-workspace .saas-toolbar{height:54px!important;min-height:54px!important;background:#fff!important;border-bottom:1px solid var(--wlc-premium-line)!important}
body.saas-on .saas-workspace .workspace-tab{border-radius:7px!important}
body.saas-on .saas-workspace .workspace-tab[aria-current="page"],body.saas-on .saas-workspace .workspace-tab.is-active,body.saas-on .saas-workspace .workspace-tab.active{box-shadow:inset 3px 0 0 var(--wlc-premium-orange)!important}
body.saas-on .saas-workspace .saas-panel-body{min-height:0!important;min-width:0!important}
body.saas-on .saas-workspace .saas-panel-body>.workspace-panel:not([hidden]){min-width:0!important;min-height:0!important}
body.saas-on .saas-workspace :is(.r278-job-split,.r278-data-split,.r282-overview-grid,#r83-candidate-split){grid-template-columns:minmax(0,11fr) minmax(0,9fr)!important;gap:10px!important;min-width:0!important}
body.saas-on .saas-workspace :is(.r278-job-master,.r278-data-master,.r278-context-panel,.r282-surface,.r282-overview-right,.r374-list-card,.r374-form-card){border-color:var(--wlc-premium-line)!important;border-radius:10px!important;box-shadow:none!important;min-width:0}
body.saas-on .saas-workspace :is(.r278-aside-head,.r94-directory-bar,.r278-table-head,.r278-detail-tabs,.r376-page-head){border-color:var(--wlc-premium-line)!important}
body.saas-on .saas-workspace :is(button,.primary,.secondary,.r278-tab,.r410-tabs button){font-family:inherit;letter-spacing:normal}
body.saas-on .saas-workspace :is(button,select,input,textarea,a):focus-visible{outline:2px solid #4b9bd0!important;outline-offset:2px}
body.saas-on .saas-workspace :is(.primary,.secondary):not(.workspace-tab){border-radius:7px!important}
body.saas-on .saas-workspace :is(.r278-data-master,.r278-job-master,.r278-context-panel){min-height:0!important}
/* Exact section order: real Candidate Pipeline first in top-right; real jobs and updates left. */
body.saas-on .saas-workspace #overview-panel .r282-overview-grid{grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr)!important}
body.saas-on .saas-workspace #overview-panel .r282-aside-scroll{display:flex!important;flex-direction:column!important;gap:9px!important;min-width:0!important}
body.saas-on .saas-workspace #overview-panel .r282-aside-scroll>#r293-pipeline{order:-10!important;flex:none!important;margin:0!important}
body.saas-on .saas-workspace #overview-panel .r282-aside-scroll>#r293-active-summary{order:-9!important}
body.saas-on .saas-workspace #overview-panel .r293-pipeline-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
body.saas-on .saas-workspace #overview-panel #r293-pipeline{border:1px solid var(--wlc-premium-line)!important;border-radius:10px!important;background:#fff!important;padding:11px!important}
body.saas-on .saas-workspace #overview-panel #r376-preview{margin-top:9px!important}
body.saas-on .saas-workspace #overview-panel .r282-overview-left :is(.r282-panel-head,.r293-section-label){min-height:38px}
/* Browse Jobs: ONE canonical job details renderer with actions at title level. */
body.saas-on .saas-workspace #jobs-panel .r456-job-hero{display:flex!important;flex-direction:column!important;gap:7px!important;padding:10px 12px!important;min-width:0!important}
body.saas-on .saas-workspace #jobs-panel .r456-job-title-line{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-width:0!important;width:100%!important}
body.saas-on .saas-workspace #jobs-panel .r456-job-title-line>.r290-job-title{flex:1 1 auto!important;min-width:0!important;max-width:none!important;margin:0!important;font-size:14px!important;font-weight:750!important;line-height:1.35!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.saas-on .saas-workspace #jobs-panel .r456-job-title-line>.r456-title-actions{position:static!important;display:flex!important;flex:0 0 auto!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;width:auto!important;min-height:0!important;margin:0!important;padding:0!important;box-shadow:none!important;background:none!important;border:0!important;gap:5px!important}
body.saas-on .saas-workspace #jobs-panel .r456-title-actions button{min-height:31px!important;max-height:34px!important;white-space:nowrap!important;font-size:10px!important;padding:6px 8px!important;border-radius:7px!important}
body.saas-on .saas-workspace #jobs-panel .r456-job-meta{display:flex;gap:6px;align-items:center;flex-wrap:wrap;min-width:0}
body.saas-on .saas-workspace #jobs-panel .r456-job-code{font-size:10px;font-weight:800;color:#246fa6;letter-spacing:.03em}
body.saas-on .saas-workspace #jobs-panel .r94-job-item :is(.r94-job-title,.r94-position,.r94-job-name){font-weight:650!important;font-size:13px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.saas-on .saas-workspace #jobs-panel .r278-detail-tabs{border-bottom:1px solid var(--wlc-premium-line)!important}
body.saas-on .saas-workspace #jobs-panel .r278-detail-tabs .is-active{border-bottom-color:var(--wlc-premium-orange)!important}
body.saas-on .saas-workspace #jobs-panel :is(.r278-reward-amount,.r451-reward-amount,.r94-partner-reward){color:var(--wlc-premium-green)!important}
/* Partner Updates: same compact master-detail visual system. */
body.saas-on .saas-workspace #partner-updates-panel .r376-page-layout{min-height:0!important;min-width:0!important;grid-template-columns:minmax(0,11fr) minmax(0,9fr)!important;gap:10px!important}
body.saas-on .saas-workspace #partner-updates-panel :is(.r376-feed-main,.r376-feed-aside,.r376-update-detail,.r376-aside-card){min-width:0;border-color:var(--wlc-premium-line);border-radius:9px}
body.saas-on .saas-workspace #partner-updates-panel .r376-page-head{padding-block:8px!important}
/* My Jobs, My Candidates, Earnings: shared 55/45, compact rows and coherent headings. */
body.saas-on .saas-workspace :is(#worklist-panel,#candidates-panel,#payouts-panel) .r278-data-split{grid-template-columns:minmax(0,11fr) minmax(0,9fr)!important}
body.saas-on .saas-workspace :is(#worklist-panel,#candidates-panel,#payouts-panel) :is(.r278-table-head,.r278-aside-head){background:#fff!important}
body.saas-on .saas-workspace :is(#worklist-panel,#candidates-panel,#payouts-panel) .r278-data-list{overflow-y:auto;overscroll-behavior:contain}
body.saas-on .saas-workspace :is(#worklist-panel,#candidates-panel,#payouts-panel) :is(.r278-work-row,.r83-candidate-row,.r278-payout-row){min-height:56px}
/* Referral workspace — VISUAL CSS-only reorder; original form handlers and referral rows preserved. */
@media(min-width:901px){
 body.saas-on .saas-workspace #client-referrals-panel:not([hidden]){display:grid!important;grid-template-columns:minmax(0,11fr) minmax(0,9fr)!important;grid-template-rows:auto minmax(0,1fr);align-content:start;gap:10px!important;overflow:hidden!important}
 body.saas-on .saas-workspace #client-referrals-panel>.r374-heading{grid-column:1/-1;grid-row:1;min-width:0;margin:0!important}
 body.saas-on .saas-workspace #client-referrals-panel>.r374-list-card{grid-column:1;grid-row:2;min-height:0!important;overflow:auto!important;margin:0!important}
 body.saas-on .saas-workspace #client-referrals-panel>.r374-form-card{grid-column:2;grid-row:2;min-height:0!important;overflow:auto!important;margin:0!important}
}
body.saas-on .saas-workspace #client-referrals-panel :is(.r374-list-heading,.r374-form-card,.r374-list-card){border-color:var(--wlc-premium-line)!important}
body.saas-on .saas-workspace #client-referrals-panel .r410-tabs{overflow-x:auto;max-width:100%}
/* My Account: full-width four-tab layout, not forced master-detail. */
body.saas-on .saas-workspace #profile-panel{min-width:0!important}
body.saas-on .saas-workspace #profile-panel :is(.r275-tabs,.r90-profile-tabs,.v44-account-tabs){overflow-x:auto;max-width:100%;scrollbar-width:thin}
body.saas-on .saas-workspace #profile-panel :is(.v44-fields,.r90-details-grid,.v44-profile-grid){min-width:0}
/* Native hidden attribute always wins, preventing duplicate/hidden panel flashes. */
body.saas-on .saas-workspace .workspace-panel[hidden],body.saas-on .saas-workspace #r293-pipeline[hidden]{display:none!important}
@media(max-width:1180px) and (min-width:901px){
 body.saas-on .saas-workspace #jobs-panel .r456-job-title-line{align-items:flex-start!important;flex-direction:column!important}
 body.saas-on .saas-workspace #jobs-panel .r456-job-title-line>.r456-title-actions{width:100%!important;flex-wrap:wrap!important;justify-content:flex-start!important}
}
@media(max-width:900px){
 body.saas-on .saas-workspace .saas-shell{display:block!important;grid-template-columns:none!important}
 body.saas-on .saas-workspace .saas-sidebar{width:min(88vw,310px)!important}
 body.saas-on .saas-workspace .saas-toolbar{height:56px!important;min-height:56px!important}
 body.saas-on .saas-workspace .saas-main{background:var(--wlc-premium-bg)!important}
 body.saas-on .saas-workspace #overview-panel .r282-overview-grid{grid-template-columns:1fr!important;display:flex!important;flex-direction:column!important}
 body.saas-on .saas-workspace #overview-panel .r282-aside-scroll{overflow:visible!important}
 body.saas-on .saas-workspace #overview-panel .r293-pipeline-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.saas-on .saas-workspace :is(.r278-job-split,.r278-data-split,#r83-candidate-split){grid-template-columns:minmax(0,1fr)!important}
 body.saas-on .saas-workspace #jobs-panel .r456-job-title-line{flex-direction:column!important;align-items:stretch!important}
 body.saas-on .saas-workspace #jobs-panel .r456-job-title-line>.r290-job-title{max-width:100%!important}
 body.saas-on .saas-workspace #jobs-panel .r456-job-title-line>.r456-title-actions{width:100%!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:6px!important}
 body.saas-on .saas-workspace #jobs-panel .r456-title-actions button{min-height:42px!important;font-size:12px!important;padding:8px 9px!important;max-height:none!important}
 body.saas-on .saas-workspace #client-referrals-panel:not([hidden]){display:flex!important;flex-direction:column!important;overflow-y:auto!important}
 body.saas-on .saas-workspace #client-referrals-panel :is(.r374-form-card,.r374-list-card){max-width:100%!important;min-width:0!important}
 body.saas-on .saas-workspace #profile-panel :is(input:not([type=checkbox]):not([type=radio]),select,textarea),body.saas-on .saas-workspace #client-referrals-panel :is(input,select,textarea),body.saas-on .saas-workspace #intakes-panel :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;max-width:100%!important}
}
@media(max-width:430px){
 body.saas-on .saas-workspace #jobs-panel .r456-title-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body.saas-on .saas-workspace #jobs-panel .r456-title-actions button{min-width:0!important;white-space:normal!important;text-align:center!important;line-height:1.3!important;padding:7px 4px!important;font-size:11px!important}
 body.saas-on .saas-workspace #overview-panel .r293-pipeline-grid{gap:6px!important}
}
/* Approved Premium Demo hero appearance, using the EXISTING authenticated greeting/actions. */
@media(min-width:901px){
 body.saas-on .saas-workspace[data-current-panel="overview-panel"] .v5-overview-pagehead{
  border-radius:10px!important;background:linear-gradient(110deg,#102c4c 0%,#22577b 100%)!important;
  padding:17px 20px!important;min-height:96px!important;margin-bottom:9px!important;
  border:1px solid #234c6c!important;color:#fff!important;
 }
 body.saas-on .saas-workspace[data-current-panel="overview-panel"] .v5-overview-pagehead :is(h1,h2,h3,.r289-overview-greeting){color:#fff!important}
 body.saas-on .saas-workspace[data-current-panel="overview-panel"] .v5-overview-pagehead .v5-overview-buttons button{
  min-height:34px!important;border-radius:7px!important;
 }
 body.saas-on .saas-workspace[data-current-panel="overview-panel"] .v5-overview-pagehead .v5-overview-buttons .primary{background:#fff!important;color:#173b60!important;border-color:#fff!important}
 body.saas-on .saas-workspace[data-current-panel="overview-panel"] .v5-overview-pagehead .v5-overview-buttons .secondary{background:rgba(255,255,255,.12)!important;color:#fff!important;border-color:#7294ae!important}
 body.saas-on .saas-workspace #overview-panel .r293-metrics .r293-metric{align-items:flex-start!important;justify-content:center!important;text-align:left!important;padding:13px 14px!important;min-height:75px!important}
 body.saas-on .saas-workspace #overview-panel .r293-metrics .r293-metric :is(span,strong,small){text-align:left!important}
}
