/* R78-HF188: Master-Detail correctness fixes only.
   Scope: project/person maintenance pages introduced in HF186/HF187.
   No login/RBAC/MySQL/backup/bid-analysis/business-data logic is changed here. */

/* HF150's legacy wide-table horizontal control is obsolete in HF186+ Master-Detail. */
body #page-projects.hf186-page #hf150ProjectScrollTools,
body #page-projects.hf186-page .hf150-horizontal-tools{display:none!important}

/* Long legacy/custom project codes must never overlap customer/project text. */
body #page-projects.hf186-page .hf186-project-row .hf186-code{
  display:block!important;min-width:0!important;max-width:100%!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important
}
body #page-projects.hf186-page .hf186-project-row{
  grid-template-columns:112px minmax(160px,1fr) 58px minmax(96px,.58fr) minmax(124px,.72fr)!important
}

/* Make a single action bar authoritative if an inherited DOM patch accidentally leaves a duplicate. */
body #page-people.hf186-page #hf186PeopleDetail .hf186-detail-actions[data-hf188-duplicate="1"],
body #page-projects.hf186-page #hf186ProjectDetail .hf186-detail-actions[data-hf188-duplicate="1"]{display:none!important}

@media(max-width:1260px){
 body #page-projects.hf186-page .hf186-project-row{
   grid-template-columns:104px minmax(145px,1fr) 56px minmax(90px,.55fr) minmax(110px,.68fr)!important
 }
}
@media(max-width:980px){
 body #page-projects.hf186-page .hf186-project-row{
   grid-template-columns:96px minmax(125px,1fr) 50px 88px!important
 }
}
@media(max-width:760px){
 body #page-projects.hf186-page .hf186-project-row{
   grid-template-columns:92px minmax(120px,1fr) 48px!important
 }
}
