/* HF146: limited to the requested pages and controls. */
#mainNavR40 .navbtn[data-hf143-denied="1"],#mainNavR40 .navbtn[hidden]{display:none!important}
#page-report .role-stack-pre,#page-projectlist .role-stack-pre{background:#2563eb!important}
#page-report .role-stack-pjm,#page-projectlist .role-stack-pjm{background:#059669!important}
#page-report .role-stack-engineer,#page-projectlist .role-stack-engineer{background:#ea580c!important}
#page-report .role-stack-sales,#page-projectlist .role-stack-sales{background:#9333ea!important}
#page-report .role-stack-other,#page-projectlist .role-stack-other{background:#64748b!important}
#page-report [class*="role-stack-"],#page-projectlist [class*="role-stack-"]{background-image:none!important}
#page-projects .tablewrap{overflow-x:scroll!important;overflow-y:auto!important;scrollbar-gutter:stable;min-height:0}
#page-projects table{width:max-content!important;min-width:100%;table-layout:auto!important}
#page-projects table th,#page-projects table td{padding:7px 9px!important;max-width:320px;vertical-align:top;overflow-wrap:anywhere}
#page-projects .hf146-hide-column{display:none!important}
#page-projects table th:nth-child(1),#page-projects table td:nth-child(1){min-width:160px}
#page-projects table th:nth-child(2),#page-projects table td:nth-child(2){min-width:240px}
#page-projects table td:nth-child(3){min-width:135px;white-space:nowrap}
#page-projects .acts{gap:4px;flex-wrap:wrap;max-width:165px}
#page-projects .hf146-history{display:block;margin-top:5px;padding:3px 6px;font-size:11px}
#page-daily .hero{padding:10px 14px!important;margin-bottom:8px!important;min-height:0!important}
#page-daily .hero p,#page-daily .daily-entry-card>.cardhead .cardtitle,#page-daily .daily-entry-card>.cardhead .cardsub,#page-daily .daily-entry-body>.notice,#page-daily .daytotal{display:none!important}
#page-daily .daily-entry-card>.cardhead{padding:7px 12px!important;min-height:0!important}
#page-daily .daily-entry-body{padding:8px 10px!important;gap:6px!important}
#page-daily .entry-top{gap:8px!important;margin:0 0 4px!important}
#page-daily .entry-top .field{gap:3px!important;margin:0!important}
#page-daily .entry-top input,#page-daily .entry-top select{padding:5px 7px!important;min-height:30px!important}
#page-daily .assigned-project-summary{padding:5px 8px!important;margin:2px 0 5px!important}
#page-daily .entry-table th,#page-daily .entry-table td{padding:5px 6px!important}
#page-daily .entry-table input,#page-daily .entry-table select{padding:4px 6px!important;min-height:28px!important;font-size:13px!important}
#page-daily .entry-table textarea.eDesc{height:28px;min-height:28px!important;padding:4px 6px!important}
#page-daily .daily-entry-actions{margin-top:5px!important;gap:6px!important}
.hf146-case-option{display:grid;grid-template-columns:125px minmax(140px,1fr) minmax(180px,2fr) 70px;gap:10px;align-items:center;width:100%;border:1px solid var(--line,#cbd5e1);border-radius:8px;background:var(--panel,#fff);color:var(--text,#0f172a);padding:9px 12px;text-align:left;font:inherit;cursor:pointer;margin:3px 0}
.hf146-case-option:hover,.hf146-case-option:focus-visible{background:#eff6ff;border-color:#2563eb;outline:2px solid #93c5fd}
.hf146-case-internal{border-left:4px solid #059669;background:#f0fdf4}
#hf146ChangeDialog{width:min(940px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #cbd5e1;border-radius:10px;color:var(--text,#0f172a);background:var(--panel,#fff)}
#hf146ChangeDialog::backdrop{background:#0f172a66}
.hf146-dialog-head{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:12px;position:sticky;top:0;background:var(--panel,#fff);border-bottom:1px solid #cbd5e1}
.hf146-dialog-body{padding:12px;overflow:auto}
.hf146-change-table{width:100%;border-collapse:collapse;font-size:12px}.hf146-change-table td,.hf146-change-table th{padding:8px;border:1px solid #cbd5e1;white-space:pre-wrap;overflow-wrap:anywhere}
.hf146-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0}
#hf146DbResults{overflow:auto;max-height:50dvh;font-size:12px}#hf146DbResults table{width:max-content;min-width:100%;border-collapse:collapse}#hf146DbResults td,#hf146DbResults th{padding:6px;border:1px solid #cbd5e1;max-width:320px;overflow-wrap:anywhere}
#loginView .login-card{height:var(--hf146-login-height,auto)!important;max-height:calc(100dvh - 24px)!important;overflow:auto;box-sizing:border-box}
#loginView .login-card h2{text-align:center!important}
#hf146CustomerQuery{flex:1;min-width:140px}#hf145CustomerChoices button.hf145-choice{width:100%;display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:var(--panel,#fff);color:inherit;cursor:pointer}
@media(max-width:760px){.hf146-case-option{grid-template-columns:100px 1fr}.hf146-case-option>span:nth-child(3){grid-column:1/-1}}

#projectOverlay #projCustomerTaxFieldR49F4{display:flex!important}
#page-report .role-stack-hardware,#page-projectlist .role-stack-hardware,#page-report .legend-hardware,#page-projectlist .legend-hardware{background:#ea580c!important}
#page-report .role-stack-software,#page-projectlist .role-stack-software,#page-report .legend-software,#page-projectlist .legend-software{background:#0891b2!important}
#page-report .legend-pre,#page-projectlist .legend-pre{background:#2563eb!important}
#page-report .legend-pjm,#page-projectlist .legend-pjm{background:#059669!important}
#page-report .legend-engineer,#page-projectlist .legend-engineer{background:#ea580c!important}
#page-report .legend-sales,#page-projectlist .legend-sales{background:#9333ea!important}
#page-report .legend-other,#page-projectlist .legend-other{background:#64748b!important}
#page-report .role-stack-track,#page-projectlist .role-stack-track{background:#e2e8f0!important;box-shadow:none!important}
#page-report .role-stack-track [class^="role-stack-"],#page-projectlist .role-stack-track [class^="role-stack-"]{box-shadow:none!important;background-image:none!important}

.hf146-case-internal,.hf146-case-option:hover,.hf146-case-option:focus-visible{color:#0f172a}

/* HF146: retain native editor controls; bound dialogs to the content area. */
dialog.hf145-editor-dialog{inset:auto!important;left:var(--hf146-editor-left,calc(18vw + 12px))!important;top:var(--hf146-editor-top,100px)!important;width:var(--hf146-editor-width,min(1360px,80vw))!important;max-width:calc(100dvw - 24px)!important;height:var(--hf146-editor-height,76dvh)!important;max-height:calc(100dvh - 32px)!important;margin:0!important}
dialog.hf145-editor-dialog::backdrop{background:#0f172a18}
#hf145OrgDialog #r59OrgEditorPanel,#hf145WbsDialog .project-wbs-pane{flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important}
#hf145OrgDialog #r59OrgEditor{display:block!important;visibility:visible!important;opacity:1!important;flex:1 1 0!important;width:100%!important;min-width:0!important;height:auto!important;overflow:auto!important;scrollbar-width:auto!important}
#hf145OrgDialog #r59OrgEditor::-webkit-scrollbar{height:11px!important;width:10px!important}
#hf145OrgDialog #r59OrgEditorPanel>.r59-org-actions{display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important}
#hf145OrgDialog #r78EditorTop{flex:0 0 16px!important;height:16px!important;min-height:16px!important}
#page-orgchart #r78PreviewBar{flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;max-width:100%!important;min-height:40px!important;max-height:70px!important;overflow-x:auto!important;overflow-y:hidden!important;box-sizing:border-box!important}
#page-orgchart #r78PreviewBar>.r78-preview-row,#page-orgchart #r78PreviewBar>.r79-context-row{display:contents!important}
#page-orgchart #r78PreviewBar .field,#page-orgchart #r78PreviewBar button,#page-orgchart #r78PreviewBar .r78-slot-wrap,#page-orgchart #r78PreviewBar .r78-save-status-wrap{flex:0 0 auto!important}
#page-orgchart #r78PreviewBar .field{max-width:none!important;width:auto!important;flex-direction:row!important}
#page-orgchart #r78PreviewBar .r76-zoom-field,#page-orgchart #r78PreviewBar .r79-copy-inner,#page-orgchart #r78PreviewBar #r76SlotTabs{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:4px!important}
#page-orgchart #r78PreviewBar select{max-width:200px!important}
@media(max-width:700px){dialog.hf145-editor-dialog{left:12px!important;width:calc(100dvw - 24px)!important}}
