/* RPC ACL Patient Portal v0.16.3 — visible clinician caseload filter */

/* Suppress old caseload controls from earlier attempts. */
#clinicianCaseloadView{display:none!important}
#clinicianCaseloadSidebarControl.caseload-sidebar-control{display:none!important}

.case-filter{
  box-sizing:border-box;
}

.case-filter-label{
  display:block;
  font-size:8px;
  font-weight:950;
  letter-spacing:.08em;
}

.case-filter-buttons{
  display:flex;
  gap:5px;
}

.case-filter-buttons button{
  border:1px solid transparent;
  border-radius:8px;
  min-height:32px;
  padding:5px 8px;
  font:inherit;
  font-size:9px;
  font-weight:850;
  cursor:pointer;
  white-space:nowrap;
}

.case-filter-buttons button strong{
  display:inline-grid;
  place-items:center;
  min-width:19px;
  height:19px;
  padding:0 4px;
  margin-left:3px;
  border-radius:999px;
  font-size:8px;
}

/* SIDEBAR: anchored immediately above Add Patient */
.case-filter-sidebar{
  margin:3px 8px 8px;
  padding:8px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:9px;
  background:rgba(255,255,255,.06);
}

.case-filter-sidebar .case-filter-label{
  margin:0 0 6px 1px;
  color:rgba(255,255,255,.68);
}

.case-filter-sidebar .case-filter-buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
}

.case-filter-sidebar button{
  min-width:0;
  padding:5px 4px;
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.80);
}

.case-filter-sidebar button strong{
  background:rgba(255,255,255,.11);
  color:inherit;
}

.case-filter-sidebar button.selected{
  background:#eef7fb;
  color:#173b56;
  border-color:#eef7fb;
}

.case-filter-sidebar button.selected strong{
  background:#d8e9f1;
  color:#173b56;
}

/* PATIENTS PAGE: clear, normal-flow control under the page header */
.case-filter-page{
  margin:10px 0 14px;
  padding:10px 11px;
  border:1px solid #dbe5ea;
  border-radius:10px;
  background:#f8fbfc;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.case-filter-page .case-filter-label{
  color:#617d8e;
}

.case-filter-page button{
  background:#edf3f6;
  color:#4f697a;
}

.case-filter-page button strong{
  background:#dce7ed;
  color:#506a7a;
}

.case-filter-page button.selected{
  background:#173b56;
  color:#fff;
}

.case-filter-page button.selected strong{
  background:rgba(255,255,255,.18);
  color:#fff;
}

.case-filter button:disabled{
  opacity:.42;
  cursor:not-allowed;
}

@media(max-width:700px){
  .case-filter-page{
    display:grid;
    grid-template-columns:1fr;
  }
  .case-filter-page .case-filter-buttons{
    width:100%;
  }
  .case-filter-page button{
    flex:1;
  }
}
