/* CCFT v1.39.29a - Mortuary filter + visible Pathologist filter + technician selector layout fix */

.ccft-roster-mortuary-filter{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:14px 0;
  padding:12px 14px;
  border:1px solid rgba(0,0,0,.11);
  border-left:4px solid #8f1d2c;
  border-radius:12px;
  background:rgba(143,29,44,.04);
}
.ccft-roster-filter-copy{
  flex:1 1 260px;
  min-width:200px;
}
.ccft-roster-filter-copy strong{
  display:block;
  margin-bottom:2px;
}
.ccft-roster-filter-copy span{
  display:block;
  font-size:.84rem;
  opacity:.72;
}
.ccft-roster-mortuary-filter label{
  margin:0!important;
  padding:0!important;
}
#ccftRosterMortuarySelect{
  min-width:210px;
  height:40px;
  padding:7px 34px 7px 10px;
  border:1px solid rgba(0,0,0,.18);
  border-radius:8px;
  background:#fff;
  font:inherit;
}
#ccftRosterMortuaryReset{
  min-height:40px;
  white-space:nowrap;
}
.ccft-roster-filter-status{
  margin:-4px 0 12px;
  font-size:.82rem;
  font-weight:700;
  opacity:.68;
}
@media(max-width:680px){
  .ccft-roster-mortuary-filter{
    align-items:stretch;
  }
  .ccft-roster-mortuary-filter label,
  #ccftRosterMortuarySelect,
  #ccftRosterMortuaryReset{
    width:100%;
  }
  #ccftRosterMortuarySelect{
    min-width:0;
  }
}


/* Clear visual indication that a single mortuary view is active. */
[data-ccft-roster-focus]{
  --ccft-roster-focus-accent:#8f1d2c;
}
[data-ccft-roster-focus] #ccftRosterMortuaryFilter{
  box-shadow:0 0 0 2px rgba(143,29,44,.08);
}


/* v1.39.20b — Available technicians selector.
   Fixes global checkbox/label styling that was centring checkboxes above names. */
.ccft-roster-tech-fieldset-fixed{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
  gap:10px 14px!important;
  width:100%!important;
  padding:14px 16px 16px!important;
  margin:12px 0 14px!important;
  box-sizing:border-box!important;
  border:1px solid rgba(0,0,0,.25)!important;
  border-radius:8px!important;
}

.ccft-roster-tech-fieldset-fixed > legend{
  padding:0 7px!important;
  margin-left:2px!important;
  font-size:1rem!important;
  font-weight:700!important;
}

.ccft-roster-tech-fieldset-fixed .ccft-roster-tech-choice-fixed{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
  min-height:44px!important;
  margin:0!important;
  padding:9px 10px!important;
  box-sizing:border-box!important;
  border:1px solid rgba(0,0,0,.08)!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.72)!important;
  cursor:pointer!important;
  text-align:left!important;
  font-size:.96rem!important;
  font-weight:700!important;
  line-height:1.25!important;
}

.ccft-roster-tech-fieldset-fixed .ccft-roster-tech-choice-fixed:hover{
  border-color:rgba(143,29,44,.26)!important;
  background:rgba(143,29,44,.035)!important;
}

.ccft-roster-tech-fieldset-fixed input.ccft-roster-tech-checkbox-fixed[type="checkbox"]{
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
  position:static!important;
  float:none!important;
  display:block!important;
  flex:0 0 18px!important;
  width:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  max-height:18px!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  box-sizing:border-box!important;
}

.ccft-roster-tech-fieldset-fixed .ccft-roster-tech-choice-fixed > span,
.ccft-roster-tech-fieldset-fixed .ccft-roster-tech-choice-fixed > strong,
.ccft-roster-tech-fieldset-fixed .ccft-roster-tech-choice-fixed > b{
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  line-height:1.25!important;
}

@media(max-width:650px){
  .ccft-roster-tech-fieldset-fixed{
    grid-template-columns:1fr!important;
    padding:12px!important;
  }
}


/* Pathologist filter is deliberately placed directly below the Mortuary view. */
.ccft-roster-pathologist-filter{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid rgba(0,0,0,.11);
  border-left:4px solid #8f1d2c;
  border-radius:12px;
  background:rgba(143,29,44,.04);
}
.ccft-roster-pathologist-filter .ccft-roster-filter-copy{
  flex:1 1 260px;
  min-width:200px;
}
.ccft-roster-pathologist-filter label{
  margin:0!important;
  padding:0!important;
}
#ccftRosterPathologistSelect{
  min-width:240px;
  height:40px;
  padding:7px 34px 7px 10px;
  border:1px solid rgba(0,0,0,.18);
  border-radius:8px;
  background:#fff;
  font:inherit;
}
#ccftRosterPathologistReset{
  min-height:40px;
  white-space:nowrap;
}
@media(max-width:680px){
  .ccft-roster-pathologist-filter{
    align-items:stretch;
  }
  .ccft-roster-pathologist-filter label,
  #ccftRosterPathologistSelect,
  #ccftRosterPathologistReset{
    width:100%;
  }
  #ccftRosterPathologistSelect{
    min-width:0;
  }
}

/* The native v1.39.29 toolbar filter is functionally useful but the user-facing
   filter lives below Mortuary view. Hide only the duplicate native control. */
#rostering .ccftrost-toolbar .ccftrost-path-filter,
#roster .ccftrost-toolbar .ccftrost-path-filter{
  display:none!important;
}
