/* Shared across the shell and every embedded page. Never scale a whole document. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.site-date-field{display:inline-flex;position:relative;min-width:0;min-height:44px;max-width:100%;width:100%;vertical-align:middle;flex:0 1 170px}
.site-date-field>input,.site-date-field>select{position:absolute!important;inset:0;width:100%!important;height:100%!important;min-width:0;opacity:0;pointer-events:none!important}
.site-date-field>.site-date-trigger{position:relative!important;width:100%;height:auto;min-width:0;min-height:44px;margin:0;padding:9px 12px;border:1px solid #dfe3e9!important;border-radius:10px;background:#fff!important;color:inherit;box-shadow:none!important;cursor:pointer;z-index:1;font:inherit;font-size:14px;font-weight:500;line-height:1.35;text-align:left;white-space:normal;overflow-wrap:anywhere;-webkit-tap-highlight-color:transparent;transform:none!important}
html .site-date-field>:focus{outline:none!important;box-shadow:none!important}
html[data-site-keyboard=true] .site-date-field>.site-date-trigger:focus{outline:2px solid #737d8b!important;outline-offset:-3px}
.site-date-trigger:disabled{cursor:default}
/* Keep a nested picker in the native top layer without a transformed containing block. */
html dialog.site-picker-owner{transform:none!important;translate:none!important;rotate:none!important;scale:none!important;filter:none!important;backdrop-filter:none!important;perspective:none!important;contain:none!important;will-change:auto!important}
.site-date-overlay{position:fixed;inset:0;z-index:30000;display:grid;place-items:center;padding:16px;background:#17203366;box-sizing:border-box;overscroll-behavior:contain}
.site-date-panel{width:min(420px,100%);min-width:0;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;background:#fff;color:#1d1d1f;border:1px solid #e5e5e9;border-radius:20px;padding:16px;box-shadow:0 20px 60px #0002;font:16px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif}
.site-date-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.site-date-panel h2{margin:0;font-size:17px;overflow-wrap:anywhere;line-height:1.4}
.site-date-panel button{font:inherit;min-width:0;min-height:44px;border:0;border-radius:9px;background:transparent;color:inherit;padding:8px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.site-date-panel>header>button{flex:none;width:44px;font-size:25px}.site-date-panel button:disabled{opacity:.28;cursor:default}
html .site-date-panel button:focus{outline:none;box-shadow:none}html[data-site-keyboard=true] .site-date-panel button:focus{outline:2px solid #737d8b;outline-offset:-2px}
.site-date-panel button[aria-pressed=true]{background:#ebedf0;font-weight:700}
.site-date-choices{max-height:min(55vh,440px);overflow:auto;position:relative;overscroll-behavior:contain}.site-date-choices>button{display:block;width:100%;text-align:left;padding:10px 14px}
.site-choice-search{display:block;width:100%;min-height:44px;margin-bottom:10px;padding:10px 12px;border:1px solid #dfe3e9;border-radius:10px;font:inherit;box-sizing:border-box}.site-choice-body{min-height:0}.site-date-choices>p{padding:16px;color:#73737b}.site-date-panel,.site-date-panel *{box-sizing:border-box}
.site-date-calendar-head{display:flex;gap:4px;justify-content:space-between;align-items:center}.site-date-calendar-head>button{flex:1}.site-date-calendar-head>button:first-child,.site-date-calendar-head>button:last-child{flex:0 0 44px;font-size:24px}
.site-date-grid{display:grid;gap:3px;grid-template-columns:repeat(7,minmax(0,1fr));margin-top:8px}.site-date-grid>span{text-align:center;color:#73737b;font-size:12px;min-height:22px}.site-date-grid.months,.site-date-grid.years{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.site-date-calendar-actions{display:flex;justify-content:space-between;gap:8px;margin-top:12px;border-top:1px solid #ececf0;padding-top:8px}.site-date-calendar-actions>button{flex:1}
@media(hover:hover){.site-date-panel button:not(:disabled):hover{background:#f1f2f4}}
@media(max-width:759px){html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea){font-size:16px}.site-date-overlay{padding:10px}.site-date-panel{max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);padding:12px}.site-date-grid{gap:2px}.site-date-grid>button{padding:4px 0}}
/* Full-width canvases and readable type on large displays, inside or outside frames. */
.performance-main{width:100%;max-width:none}
@media(min-width:1800px){
 :root{--font-size-body:clamp(16px,.85vw,22px);--font-size-caption:clamp(13px,.7vw,18px);--font-size-title:clamp(32px,1.8vw,54px);--page-gutter:clamp(24px,1.6vw,64px)}
 .performance-main,.management-main,.profile-settings-shell,.ticket-main-canvas{padding-inline:clamp(28px,2vw,72px)}
 :is(.performance-main,.management-main,.profile-settings-shell,.ticket-main-canvas) :is(p,label,td,th,input,select,textarea){font-size:clamp(14px,.8vw,22px)}
 :is(.performance-main,.management-main,.profile-settings-shell,.ticket-main-canvas) :is(h1,h2){font-size:clamp(24px,1.35vw,40px)}
 :is(.performance-main,.management-main,.profile-settings-shell,.ticket-main-canvas) h3{font-size:clamp(18px,1vw,28px)}
 :is(.performance-main,.management-main,.profile-settings-shell,.ticket-main-canvas) button{font-size:clamp(14px,.8vw,20px);min-height:44px}
 .performance-summary strong,.management-stat strong,.people-summary strong{font-size:clamp(34px,2vw,62px)}
 .performance-summary :is(span,small),.performance-person-identity strong,.performance-person-score strong,.performance-person-amount strong,.ticket-report-actual,.ticket-report-shift,.management-entry-card p{font-size:clamp(14px,.8vw,22px)}
 .performance-summary article,.management-entry-card,.profile-settings-section{padding:clamp(24px,1.6vw,48px)}
 .performance-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 #moduleViewWorkbench .kpi-value{font-size:clamp(36px,2.2vw,66px)}#moduleViewWorkbench :is(.kpi-label,.kpi-sub,.compare,.person-pill .person-name,.filter-label){font-size:clamp(13px,.75vw,22px)}
 #moduleViewWorkbench :is(.kpi-card,.person-pill){padding:clamp(20px,1.4vw,42px)}#moduleViewWorkbench .section-label h2{font-size:clamp(20px,1.2vw,34px)}
 .profile-settings-content{grid-template-columns:repeat(auto-fit,minmax(min(100%,520px),1fr))}
 .management-entry-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))}
}

@media(min-width:1800px){.performance-people-body{max-height:clamp(570px,65vh,1440px)}.people-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr))}.performance-person-row{min-height:clamp(78px,5vw,128px)}.performance-rank,.performance-person-identity small,.performance-person-score small,.performance-person-amount small{font-size:clamp(13px,.7vw,20px)}}

@media(min-width:1800px){#moduleViewWorkbench .kpi-value.work-hour-analysis-value{font-size:clamp(26px,1.5vw,44px);white-space:normal;overflow-wrap:anywhere}}
html :is(.mobile-bottom-nav,.management-bottom-nav,.performance-bottom-nav,.profile-bottom-nav)>a{-webkit-tap-highlight-color:transparent}html :is(.mobile-bottom-nav,.management-bottom-nav,.performance-bottom-nav,.profile-bottom-nav)>a:focus{outline:none;box-shadow:none}html[data-site-keyboard=true] :is(.mobile-bottom-nav,.management-bottom-nav,.performance-bottom-nav,.profile-bottom-nav)>a:focus{outline:2px solid #737d8b;outline-offset:-3px}

/* Selected glass material: scope is the workbench, never the companion or other modules.
   Both views keep the same first-row geometry; only their own content follows it. */
#moduleViewWorkbench{--glass-rim:rgba(255,255,255,.94);--glass-shadow:0 10px 28px #264b7510,0 2px 5px #264b7508;--glass-inset:inset 0 1px 0 #fff,inset 0 -1px 0 #d9e8f580}
#moduleViewWorkbench .filter-panel{position:relative;top:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:16px 20px;padding:20px;backdrop-filter:none;background:linear-gradient(125deg,#f6fbffef,#e6f2fde0 55%,#f7fcfff0);border:1px solid var(--glass-rim);box-shadow:var(--glass-shadow),var(--glass-inset);border-radius:24px;margin:0 0 28px;width:100%;overflow:visible}
#moduleViewWorkbench .filter-panel .workbench-view-switch{grid-column:1/-1;grid-row:1;align-self:start;justify-self:start;width:360px;max-width:100%;min-height:56px;margin:0;padding:5px;gap:5px;background:linear-gradient(150deg,#e0ecf8,#edf6ff);border:1px solid #ffffffee;border-radius:16px;box-shadow:inset 0 2px 5px #34577e12,0 2px 3px #ffffffb0}
#moduleViewWorkbench .workbench-view-switch button{flex:1;min-width:0;min-height:44px;padding:10px 16px;white-space:nowrap;border:1px solid transparent;border-radius:11px;font-size:14px;font-weight:650;color:#4a6280;transform:none;transition:none}
#moduleViewWorkbench .workbench-view-switch button[aria-pressed=true]{color:#fff;background:linear-gradient(160deg,#55bcff,#167af1 60%,#0871e6);border-color:#8fcfff;box-shadow:inset 0 1px 1px #ffffffa0,inset 0 -1px 1px #1367cd,0 3px 9px #1b75d92b}
#moduleViewWorkbench .filter-heading{display:none}
#moduleViewWorkbench .filter-panel .field{min-width:0;grid-column:auto;padding:0}
#moduleViewWorkbench .filter-panel .field label{display:block;width:100%;text-align:center;font-size:12px;font-weight:600;color:#59718d;margin:0 0 8px}
#moduleViewWorkbench .filter-panel .site-date-trigger{text-align:center;font-size:15px;font-weight:600;padding:11px 14px;min-height:46px;background:linear-gradient(#fff,#f7fbff)!important;border-color:#d6e3f0!important;border-radius:12px;box-shadow:inset 0 1px 0 #fff,0 3px 7px #29497109!important;color:#1c3554}
#moduleViewWorkbench .filter-panel .reset-button{grid-column:auto;align-self:end;min-height:46px;padding:10px 22px;border:1px solid #cce3f9;border-radius:12px;background:linear-gradient(#eff8ff,#d3eaff);color:#2563a2;box-shadow:inset 0 1px 1px #fff,0 3px 7px #2949710c;font-size:13px;font-weight:650;transform:none}
#moduleViewWorkbench .filter-chips{grid-column:1/4;gap:6px;margin:0;padding:0;justify-content:center}
#moduleViewWorkbench .filter-date-segment{padding:5px 12px;font-size:11px;min-height:30px}
#moduleViewWorkbench .section-label{margin-top:28px;margin-bottom:16px}
#moduleViewWorkbench .section-label h2{color:#173454}
#moduleViewWorkbench :is(.panel,.kpi-card){border:1px solid var(--glass-rim);background:linear-gradient(145deg,#fffffffa,#f3f9ffeb);box-shadow:var(--glass-shadow),var(--glass-inset);border-radius:22px;backdrop-filter:none}
#moduleViewWorkbench #kpiGrid:has(.work-hour-analysis-card){grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
#moduleViewWorkbench #kpiGrid:has(.work-hour-analysis-card)>.kpi-card{grid-column:auto;padding:12px;min-height:0;height:auto;overflow:visible;background:linear-gradient(145deg,#fffffff5 35%,#ffffffc9),var(--accent-soft)}
#moduleViewWorkbench .kpi-card::before{top:20px;bottom:20px;height:auto;width:2px;border-radius:2px;opacity:.65}
#moduleViewWorkbench .kpi-top{grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center}
#moduleViewWorkbench .kpi-icon{width:36px;height:36px;border-radius:12px;background:linear-gradient(150deg,#ffffffb0,#ffffff30),var(--accent-soft);border:1px solid #ffffffa0;box-shadow:inset 0 1px 0 #fff,0 3px 6px #35577b0d}
#moduleViewWorkbench .kpi-label{font-size:13px;line-height:1.5;color:#415972;overflow:visible;text-overflow:clip;white-space:normal}
#moduleViewWorkbench .kpi-value{font-size:clamp(30px,2.1vw,52px);line-height:1.35;margin-top:8px;white-space:normal;overflow:visible;overflow-wrap:anywhere;color:#152c48;letter-spacing:-.025em}
#moduleViewWorkbench .kpi-value.work-hour-analysis-value{font-size:clamp(22px,1.45vw,38px)}
#moduleViewWorkbench .kpi-sub{display:block;min-height:0;font-size:12px;line-height:1.5;margin-top:2px;color:#62738a;-webkit-line-clamp:unset;overflow:visible;white-space:normal}
#moduleViewWorkbench :is(.work-hour-analysis-detail,.work-hour-analysis-insight){font-size:12px;line-height:1.5;overflow:visible;white-space:pre-line;overflow-wrap:anywhere}
#moduleViewWorkbench .work-hour-analysis-detail{margin-top:4px}
#moduleViewWorkbench .work-hour-staffing{gap:8px;margin-top:4px;align-items:start}
#moduleViewWorkbench .work-hour-staffing-table{font-size:12px;line-height:1.6}
#moduleViewWorkbench .work-hour-analysis-insight{margin-top:4px;font-weight:500;white-space:normal}
#moduleViewWorkbench .work-hour-card-line{display:block}
#moduleViewWorkbench .work-hour-card-line strong{font-weight:650}
#moduleViewWorkbench .work-hour-card-shift{display:inline-block;max-width:100%;vertical-align:top}
#moduleViewWorkbench .kpi-sub{container-type:inline-size}
#moduleViewWorkbench .work-hour-card-body{min-width:0}
#moduleViewWorkbench .kpi-card-foot{grid-template-columns:minmax(0,1fr);gap:4px;padding-top:6px}
#moduleViewWorkbench .compare-row{flex-wrap:wrap;gap:4px;overflow:visible;margin:0;min-height:0;align-items:center}
#moduleViewWorkbench .compare-row .compare{display:inline-flex;font-size:11px;line-height:1.5;white-space:normal;max-width:100%;flex:0 1 auto;padding:2px 6px}
#moduleViewWorkbench .compare.up{color:#008638;background:#e5f7ec}
#moduleViewWorkbench .compare.down{color:#e11937;background:#ffedf0}
#moduleViewWorkbench .kpi-signal{width:100%}
#moduleViewWorkbench .panel{padding:22px}
@media(min-width:1800px){
 #moduleViewWorkbench #kpiGrid:has(.work-hour-analysis-card){grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(16px,1vw,32px)}
 #moduleViewWorkbench #kpiGrid:has(.work-hour-analysis-card)>.kpi-card{padding:clamp(14px,.75vw,20px)}
 #moduleViewWorkbench #kpiGrid :is(.kpi-label,.kpi-sub,.work-hour-analysis-detail,.work-hour-analysis-insight,.work-hour-staffing-table){font-size:clamp(12px,.48vw,13px)}
 #moduleViewWorkbench #kpiGrid .kpi-value{font-size:clamp(30px,1.65vw,40px)}
 #moduleViewWorkbench #kpiGrid .kpi-value.work-hour-analysis-value{font-size:clamp(22px,1.25vw,28px)}
 #moduleViewWorkbench .kpi-top{grid-template-columns:28px minmax(0,1fr) auto;gap:8px}
 #moduleViewWorkbench .kpi-icon{width:28px;height:28px;border-radius:9px}
 #moduleViewWorkbench .compare-row .compare{font-size:clamp(11px,.55vw,12px)}
 #moduleViewWorkbench .filter-panel{padding:clamp(20px,1.2vw,40px);gap:20px 28px}
 #moduleViewWorkbench .filter-panel :is(.site-date-trigger,.workbench-view-switch button){font-size:clamp(15px,.8vw,25px)}
 #moduleViewWorkbench .filter-panel .workbench-view-switch{width:clamp(360px,23vw,720px)}
 #moduleViewWorkbench .filter-panel .field label{font-size:clamp(12px,.7vw,22px)}
}
@media(max-width:1000px){#moduleViewWorkbench #kpiGrid:has(.work-hour-analysis-card){grid-template-columns:repeat(2,minmax(0,1fr))}#moduleViewWorkbench .filter-panel{gap:14px 12px}#moduleViewWorkbench .filter-panel .reset-button{padding-inline:14px}}
@media(max-width:759px){
 #moduleViewWorkbench .filter-panel{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:16px 12px;margin:12px 0 22px;border-radius:20px}
 #moduleViewWorkbench .filter-panel .workbench-view-switch{width:100%;min-height:56px}
 #moduleViewWorkbench .filter-panel .site-date-trigger{font-size:16px;padding:10px 8px;letter-spacing:0}
 #moduleViewWorkbench .filter-panel .field label{font-size:12px;margin-bottom:7px}
 #moduleViewWorkbench .filter-chips{display:none}
 #moduleViewWorkbench .filter-panel .reset-button{font-size:13px}
 #moduleViewWorkbench #kpiGrid:has(.work-hour-analysis-card){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #moduleViewWorkbench #kpiGrid:has(.work-hour-analysis-card)>.kpi-card{min-height:0;padding:8px 10px;border-radius:20px}
 #moduleViewWorkbench .kpi-top{grid-template-columns:30px minmax(0,1fr) auto;gap:7px}
 #moduleViewWorkbench .kpi-icon{width:30px;height:30px;border-radius:10px}
 #moduleViewWorkbench .kpi-label{font-size:12px}
 #moduleViewWorkbench .kpi-order{width:auto;font-size:9px}
 #moduleViewWorkbench .kpi-sub{font-size:12px}
 #moduleViewWorkbench .section-label h2{font-size:20px}
 #moduleViewWorkbench .panel{padding:18px;border-radius:20px}
 .site-date-field>.site-date-trigger{font-size:16px}
}


/* Six desktop cards / two mobile cards. Keep every narrative and staffing row. */
#moduleViewWorkbench .work-hour-staffing{container-type:inline-size}
#moduleViewWorkbench .work-hour-band-summary{display:flex;flex-wrap:wrap;gap:0 6px;white-space:normal;font-variant-numeric:tabular-nums;line-height:1.5}
#moduleViewWorkbench .work-hour-band-group{display:inline-block;flex:none;max-width:none;vertical-align:top;white-space:nowrap}
#moduleViewWorkbench .work-hour-band{display:inline;white-space:nowrap;line-height:inherit}
#moduleViewWorkbench .work-hour-band-label{white-space:nowrap}
#moduleViewWorkbench .work-hour-band-count{font-weight:650}
#moduleViewWorkbench .work-hour-band-share{white-space:nowrap;font-size:inherit}
@media(min-width:760px) and (max-width:1799px){
 #moduleViewWorkbench .kpi-top{grid-template-columns:28px minmax(0,1fr) auto;gap:6px}
 #moduleViewWorkbench .kpi-icon{width:28px;height:28px;border-radius:9px}
 #moduleViewWorkbench .kpi-label{font-size:11px}
 #moduleViewWorkbench .kpi-value{margin-top:6px}
 #moduleViewWorkbench .kpi-value{font-size:clamp(23px,2.1vw,36px)}
 #moduleViewWorkbench .kpi-value.work-hour-analysis-value{font-size:clamp(17px,1.4vw,24px)}
 #moduleViewWorkbench :is(.kpi-sub,.work-hour-analysis-detail,.work-hour-analysis-insight,.work-hour-staffing-table){font-size:11px;line-height:1.5}
 #moduleViewWorkbench .work-hour-staffing{gap:6px}
 #moduleViewWorkbench .compare-row .compare{font-size:10px;padding:2px 4px}
}
@media(max-width:759px){
 #moduleViewWorkbench .work-hour-staffing{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 #moduleViewWorkbench :is(.kpi-sub,.work-hour-analysis-detail,.work-hour-analysis-insight,.work-hour-staffing-table){font-size:11px;line-height:1.5}
 #moduleViewWorkbench .kpi-value{font-size:26px}
 #moduleViewWorkbench .kpi-value.work-hour-analysis-value{font-size:19px}
 #moduleViewWorkbench .kpi-value{margin-top:6px}
 #moduleViewWorkbench .work-hour-band-summary{font-size:10.5px}
 #moduleViewWorkbench .kpi-top{grid-template-columns:24px minmax(0,1fr);gap:6px}
 #moduleViewWorkbench .kpi-icon{width:24px;height:24px;border-radius:8px}
 #moduleViewWorkbench .kpi-order{position:absolute;right:0;top:-9px}
 #moduleViewWorkbench .kpi-label{font-size:11px}
 #moduleViewWorkbench .compare-row .compare{font-size:10px;padding:2px 4px}
}
@container(max-width:190px){#moduleViewWorkbench .work-hour-staffing-table{font-size:10px}}
@container(max-width:128px){#moduleViewWorkbench .work-hour-staffing-table{grid-column:1/-1;font-size:11px}#moduleViewWorkbench .work-hour-card-shift{display:inline}}

#moduleViewWorkbench .work-hour-card-rule{display:block;font-size:clamp(10px,.45vw,12px);line-height:1.5;white-space:normal}
#moduleViewWorkbench .work-hour-card-limit{display:inline-block;white-space:nowrap}

/* Share content tracks within each card row, so wrapped text never shifts its
   neighbour. Older embedded engines retain the content-sized flex layout. */
/* Keep the view switch geometry stable during repeated clicks. KPI cards keep
   their original hover/tween transforms and transitions. */
#moduleViewWorkbench .workbench-view-switch button{transform:none!important;transition:none}
#moduleViewWorkbench #kpiGrid .kpi-top{min-height:28px}
@media(max-width:759px){#moduleViewWorkbench #kpiGrid .kpi-top{min-height:24px}}
#moduleViewWorkbench #kpiGrid .kpi-value{min-height:1.35em}
#moduleViewWorkbench .work-hour-staffing-table th:first-child{width:38%;text-align:center}
#moduleViewWorkbench .work-hour-analysis-insight[hidden],#moduleViewWorkbench .work-hour-analysis-detail[hidden]{display:none}
@supports(grid-template-rows:subgrid){
 #moduleViewWorkbench #kpiGrid:has(.work-hour-analysis-card){row-gap:0}
 #moduleViewWorkbench #kpiGrid:has(.work-hour-analysis-card)>.kpi-card{display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:0;align-items:start}
 #moduleViewWorkbench #kpiGrid .kpi-top{grid-row:1}
 #moduleViewWorkbench #kpiGrid .kpi-value{grid-row:2;align-self:end}
 #moduleViewWorkbench #kpiGrid .kpi-sub{grid-row:3}
 #moduleViewWorkbench #kpiGrid .work-hour-card-body{grid-row:4}
 #moduleViewWorkbench #kpiGrid .kpi-card-foot{grid-row:5;grid-template-rows:1fr 4px;align-self:stretch;align-items:start;margin-top:0;width:100%}
 @media(max-width:1000px){#moduleViewWorkbench #kpiGrid:has(.work-hour-analysis-card)>.kpi-card{margin-bottom:10px}#moduleViewWorkbench #kpiGrid:has(.work-hour-analysis-card)>.kpi-card:nth-last-child(-n+2){margin-bottom:0}}
}
