/* CRM V73 therapy filter and table section polish */

/* Filter panel */
#page-therapy #therapy-page-body > .card:has(.therapy-filter-grid){
  position:relative!important;
  overflow:visible!important;
  padding:14px 16px 16px!important;
  margin:0 0 14px!important;
  border:1px solid #d9e4ef!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 5px 16px rgba(15,23,42,.03)!important;
}

#page-therapy .therapy-filter-grid{
  width:100%!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.45fr) minmax(280px,.95fr) 58px!important;
  gap:10px!important;
  align-items:end!important;
}

#page-therapy .therapy-filter-grid > div:not(.crm-u-sort-wrap){
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-end!important;
}

#page-therapy .therapy-filter-grid label,
#page-therapy .therapy-filter-grid .crm-unified-filter-label,
#page-therapy .therapy-filter-grid > div > label{
  display:block!important;
  position:static!important;
  height:auto!important;
  min-height:0!important;
  margin:0 0 7px!important;
  padding:0 0 0 2px!important;
  transform:none!important;
  color:#8194ad!important;
  font-size:9px!important;
  line-height:1.2!important;
  font-weight:900!important;
  letter-spacing:.09em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}

#page-therapy .therapy-filter-grid input,
#page-therapy .therapy-filter-grid select{
  width:100%!important;
  height:46px!important;
  min-height:46px!important;
  margin:0!important;
  padding:0 16px!important;
  border:1px solid #d4dfeb!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#10243f!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:750!important;
  box-shadow:none!important;
  outline:none!important;
}

#page-therapy .therapy-filter-grid input::placeholder{
  color:#8fa0b7!important;
  opacity:1!important;
}

#page-therapy .therapy-filter-grid input:focus,
#page-therapy .therapy-filter-grid select:focus{
  border-color:#ff9d82!important;
  box-shadow:0 0 0 3px rgba(255,92,53,.09)!important;
}

#page-therapy .therapy-filter-grid .crm-u-sort-wrap{
  width:58px!important;
  min-width:58px!important;
  height:46px!important;
  align-self:end!important;
  margin:0!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:flex-end!important;
}

#page-therapy .therapy-filter-grid .crm-u-sort-btn{
  width:58px!important;
  min-width:58px!important;
  height:46px!important;
  min-height:46px!important;
  margin:0!important;
  border-radius:12px!important;
}

/* Therapy appointment style table */
#page-therapy .crm-v69-therapy-list-shell{
  margin-top:0!important;
  border:1px solid #d9e4ef!important;
  border-radius:16px!important;
  box-shadow:0 5px 16px rgba(15,23,42,.03)!important;
}

#page-therapy .crm-v69-therapy-table{
  min-width:1240px!important;
  table-layout:fixed!important;
}

#page-therapy .crm-v69-therapy-table col:nth-child(1){width:14%!important;}
#page-therapy .crm-v69-therapy-table col:nth-child(2){width:17%!important;}
#page-therapy .crm-v69-therapy-table col:nth-child(3){width:11%!important;}
#page-therapy .crm-v69-therapy-table col:nth-child(4){width:14%!important;}
#page-therapy .crm-v69-therapy-table col:nth-child(5){width:12%!important;}
#page-therapy .crm-v69-therapy-table col:nth-child(6){width:11%!important;}
#page-therapy .crm-v69-therapy-table col:nth-child(7){width:10%!important;}
#page-therapy .crm-v69-therapy-table col:nth-child(8){width:11%!important;}

#page-therapy .crm-v69-therapy-table thead th{
  height:48px!important;
  padding:0 14px!important;
  font-size:9px!important;
  line-height:1!important;
  letter-spacing:.09em!important;
}

#page-therapy .crm-v69-therapy-table tbody td{
  height:76px!important;
  padding:12px 14px!important;
}

#page-therapy .crm-v69-primary{
  font-size:12.5px!important;
}

#page-therapy .crm-v69-secondary{
  margin-top:5px!important;
  font-size:10px!important;
}

#page-therapy .crm-v69-view-btn{
  width:100%!important;
  max-width:156px!important;
  min-width:138px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 12px!important;
  border-radius:11px!important;
  font-size:10.5px!important;
}

body.crm-night-mode #page-therapy #therapy-page-body > .card:has(.therapy-filter-grid),
body.crm-night-mode #page-therapy .crm-v69-therapy-list-shell,
body.crm-night-mode #page-therapy .therapy-filter-grid input,
body.crm-night-mode #page-therapy .therapy-filter-grid select{
  background:#2b323a!important;
  border-color:#46515e!important;
  color:#f2f5f8!important;
}

@media(max-width:980px){
  #page-therapy .therapy-filter-grid{
    grid-template-columns:minmax(0,1fr) minmax(220px,.8fr) 52px!important;
  }
  #page-therapy .therapy-filter-grid .crm-u-sort-wrap,
  #page-therapy .therapy-filter-grid .crm-u-sort-btn{
    width:52px!important;
    min-width:52px!important;
  }
}

@media(max-width:760px){
  #page-therapy #therapy-page-body > .card:has(.therapy-filter-grid){
    padding:12px!important;
  }
  #page-therapy .therapy-filter-grid{
    grid-template-columns:1fr!important;
  }
  #page-therapy .therapy-filter-grid label,
  #page-therapy .therapy-filter-grid .crm-unified-filter-label,
  #page-therapy .therapy-filter-grid > div > label{
    white-space:normal!important;
  }
  #page-therapy .therapy-filter-grid .crm-u-sort-wrap,
  #page-therapy .therapy-filter-grid .crm-u-sort-btn{
    width:100%!important;
    min-width:0!important;
  }
  #page-therapy .crm-v69-view-btn{
    max-width:none!important;
  }
}
