/* Loaded last so established style layers cannot re-open denied items or editor panes. */
[data-hf143-denied="1"]{display:none!important}
#projectSplitView.hf143-preview,#page-orgchart .r59-org-workspace.hf143-preview{position:relative!important;display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;height:var(--hf143-height,calc(100dvh - 260px))!important;min-height:200px!important;overflow:hidden!important;gap:0!important}
#projectSplitView.hf143-preview>.project-gantt-pane,.r59-org-workspace.hf143-preview>.r59-org-panel:not(.hf143-editor){flex:1 1 auto!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:0!important;display:flex!important;flex-direction:column!important}
#projectSplitView.hf143-preview>.project-split-divider{display:none!important}
#projectSplitView.hf143-preview .project-gantt-scroll,.r59-org-workspace.hf143-preview #r59OrgCanvas{flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow:auto!important}
#projectSplitView.hf143-preview>.hf143-editor,.r59-org-workspace.hf143-preview>.hf143-editor{position:absolute!important;top:0!important;right:0!important;bottom:0!important;z-index:50!important;width:min(1200px,90%)!important;max-width:90%!important;height:100%!important;min-height:0!important;min-width:0!important;overflow:auto!important;background:#fff!important;box-shadow:-8px 0 25px #0f172a30;border-left:1px solid #cbd5e1;flex-direction:column!important}
#projectSplitView.hf143-preview>.hf143-editor[hidden],.r59-org-workspace.hf143-preview>.hf143-editor[hidden]{display:none!important}
#projectSplitView.hf143-preview>.hf143-editor:not([hidden]),.r59-org-workspace.hf143-preview>.hf143-editor:not([hidden]){display:flex!important;animation:hf143-drawer-in .14s ease-out}
.hf143-editor .hf143-close{align-self:flex-end;position:sticky;top:0;z-index:8;margin:6px;background:#fff}
.hf143-editor .project-wbs-scroll{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow:auto!important}
.hf143-editor #r59OrgEditor{min-height:0!important;max-height:none!important;overflow:auto!important}
.hf143-preview .gantt-pane-head{flex:0 0 auto!important;height:auto!important;min-height:0!important;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#projectSplitView.hf143-preview .project-io-toolbar{flex-basis:100%;display:flex!important;flex-wrap:wrap!important;gap:6px;padding-bottom:6px}
.hf143-preview .project-gantt-controls{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.hf143-preview .project-shared-view-controls{display:flex;flex-wrap:wrap;gap:6px}
.hf143-preview .hf143-edit{margin-left:auto}
#hf58WorkbenchBody #page-orgchart .r59-org-workspace.hf143-preview{min-height:200px!important}
#hf58WorkbenchBody #page-bidanalysis,#hf58WorkbenchBody #page-bidanalysis .hf66-bid-shell{display:flex!important;flex-direction:column;min-height:200px;height:calc(100dvh - 235px);width:100%}
#hf58WorkbenchBody #hf66BidFrame{flex:1 1 auto;min-height:0;max-height:none;height:auto}
#hf125ThemeInlineHost{height:var(--hf143-height,calc(100dvh - 205px));min-height:200px;overflow:hidden}
#hf125ThemeInlineHost .hf125-inline-theme{height:100%!important;min-height:0!important;max-height:none!important}
#hf125ThemeInlineHost .modal{display:flex!important;flex-direction:column!important;height:100%!important;max-height:100%!important;width:100%!important;margin:0!important}
#hf125ThemeInlineHost .modalbody{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;padding:10px!important}
#hf125ThemeInlineHost .modalfoot{flex:0 0 auto!important;margin:0!important;padding:8px!important;background:#fff;z-index:3}
#hf125BrandLayout{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
#hf125BrandLayout .hf125-brand-group{min-width:0!important;padding:8px!important;grid-column:auto!important}
#hf125BrandLayout .field{margin-bottom:5px!important}
#hf125BrandLayout .field>input,#hf125BrandLayout .field>select,#hf125BrandLayout textarea{min-width:0;width:100%;font-size:12px!important;padding:5px!important}
#hf125BrandLayout h4{margin:0 0 5px;font-size:14px}
#hf125BrandLayout .hf125-group-help{font-size:11px;line-height:1.35;margin-bottom:5px}
#hf125BrandLayout .hf119-geometry-grid,#hf125BrandLayout .hf117-position-grid{grid-template-columns:1fr!important;gap:5px!important}
#hf125BrandLayout img{max-height:80px!important;width:auto!important;max-width:100%!important;object-fit:contain}
html body[data-home-layout] #loginView:not(.hidden) .login-card{width:min(var(--hf119-login-panel-width,320px),calc(100dvw - 20px))!important;max-width:320px!important;min-width:0!important;padding:min(var(--hf119-login-panel-padding,24px),calc(var(--hf119-login-panel-width,320px) * .07))!important;box-sizing:border-box}
html body[data-home-layout] #loginView .login-shell{grid-template-columns:minmax(0,1fr) minmax(0,var(--hf119-login-panel-width,320px))!important}
html body[data-home-layout] #loginView .login-card input,html body[data-home-layout] #loginView .login-card button{min-width:0!important;max-width:100%!important;box-sizing:border-box}
.hf143-password-wrap{display:block;position:relative;width:100%;min-width:0}
#loginPass.hf143-password-input{color:transparent!important;-webkit-text-fill-color:transparent!important;caret-color:#334155}
.hf143-password-stars{position:absolute;left:var(--hf120-control-pad-x,12px);right:8px;top:50%;transform:translateY(-50%);pointer-events:none;font:inherit;letter-spacing:1px;color:#334155;white-space:nowrap;overflow:hidden}
@keyframes hf143-drawer-in{from{transform:translateX(20px);opacity:.7}to{transform:translateX(0);opacity:1}}
@media(max-width:1400px){#hf125BrandLayout{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){#hf125BrandLayout{grid-template-columns:1fr!important}html body[data-home-layout] #loginView .login-shell{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){.hf143-editor{animation:none!important}}
@media print{.hf143-edit,.hf143-close,.hf143-editor{display:none!important}#projectSplitView.hf143-preview,#page-orgchart .r59-org-workspace.hf143-preview{height:auto!important;min-height:0!important;overflow:visible!important;display:block!important}#projectSplitView.hf143-preview .project-gantt-scroll,.r59-org-workspace.hf143-preview #r59OrgCanvas{height:auto!important;overflow:visible!important}}

/* HF144: explicit controls and sufficiently specific embedded-editor constraints. */
.hf144-editor-toolbar{display:flex!important;flex:0 0 auto;gap:8px;justify-content:flex-end;padding:7px;background:#f8fafc;border-bottom:1px solid #e2e8f0;z-index:6}
#hf58WorkbenchBody #page-orgchart .r59-org-workspace.hf143-preview>.hf143-editor[hidden],#hf58WorkbenchBody #projectSplitView.hf143-preview>.hf143-editor[hidden]{display:none!important}
#hf58WorkbenchBody #page-orgchart .r59-org-workspace.hf143-preview{min-width:0!important;flex:1 1 auto!important}
#hf125ThemeInlineHost>#ptmsThemeOverlayR46.hf125-inline-theme{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;overflow:hidden!important}
#hf125ThemeInlineHost>#ptmsThemeOverlayR46.hf125-inline-theme>.modal{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important}
#hf125ThemeInlineHost #ptmsThemeOverlayR46.hf125-inline-theme .modalbody{display:block!important;flex:1 1 auto!important;min-height:0!important;overflow-y:scroll!important;overflow-x:hidden!important;scrollbar-gutter:stable;padding:10px!important;overscroll-behavior:contain}
#hf125ThemeInlineHost #ptmsThemeOverlayR46.hf125-inline-theme .modalfoot{flex:0 0 auto!important;position:relative!important;margin:0!important;padding:8px!important}
#accessGroupList{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));max-height:none!important;overflow:visible!important;align-items:stretch}
#accessGroupList .access-group-item{min-width:0;padding:8px!important;align-items:center}
#accessGroupList .access-group-item small{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
#groupCreateOverlay>.modal{width:min(860px,calc(100dvw - 24px))!important;max-width:860px!important;max-height:calc(100dvh - 24px)!important}
.hf144-group-summary{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 14px}.hf144-group-chip{padding:5px 8px;border:1px solid #cbd5e1;border-radius:7px;background:#f8fafc;font-size:12px}
#personalProjectHoursChart .role-stack-row,.hf144-role-axis{display:grid!important;grid-template-columns:minmax(170px,28%) minmax(0,1fr) 75px;gap:12px;align-items:center}
#personalProjectHoursChart .role-stack-label,#personalProjectHoursChart .role-stack-track-wrap{width:auto!important;min-width:0!important;max-width:none!important}
.hf144-role-axis{padding:8px 0 20px;font-size:11px;color:#64748b}.hf144-axis-ticks{position:relative;height:16px}.hf144-axis-ticks span{position:absolute;white-space:nowrap;transform:translateX(-50%)}.hf144-axis-ticks span:first-child{transform:none}.hf144-axis-ticks span:last-child{transform:translateX(-100%)}
#personalProjectHoursChart .role-stack-track{width:100%!important;background:repeating-linear-gradient(90deg,#f1f5f9 0, #f1f5f9 calc(20% - 1px),#cbd5e1 calc(20% - 1px),#cbd5e1 20%)!important}
#hf144ProjectDetail{margin:8px 0;max-height:35dvh;overflow-y:auto;scrollbar-gutter:stable}#hf144ProjectDetail .hf142-date-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}#hf144ProjectDetail .hf144-project-details{padding:12px}.hf144-stage{font-size:12px;margin-left:8px;color:#475569}
@media(max-width:700px){#personalProjectHoursChart .role-stack-row,.hf144-role-axis{grid-template-columns:minmax(100px,28%) minmax(0,1fr) 55px;gap:6px}}
@media print{.hf144-editor-toolbar{display:none!important}}
