/* CRM V66 therapy list view polish */

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-card-grid{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-session-card,
#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-request-card{
  width:100%!important;
  display:grid!important;
  grid-template-columns:minmax(300px,.95fr) minmax(520px,1.7fr) auto!important;
  grid-template-areas:
    "head meta actions"
    "note note note"
    "obs obs obs"!important;
  align-items:center!important;
  column-gap:20px!important;
  row-gap:14px!important;
  padding:18px 20px!important;
  margin:0!important;
  border:1px solid #dbe4ef!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 7px 20px rgba(15,23,42,.035)!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-card-head{
  grid-area:head!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin:0!important;
  min-width:0!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-person-wrap{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:10px!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-person-row{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  flex-wrap:wrap!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-patient-name{
  font-size:16px!important;
  line-height:1.25!important;
  font-weight:950!important;
  color:#10243f!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-mr-badge{
  min-height:30px!important;
  padding:0 12px!important;
  border-radius:999px!important;
  background:#f3f5f8!important;
  border:1px solid #e1e7ef!important;
  color:#42556f!important;
  font-size:11px!important;
  font-weight:850!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-service-pill{
  align-self:flex-start!important;
  min-height:36px!important;
  padding:0 14px!important;
  margin-top:0!important;
  border-radius:999px!important;
  font-size:11.5px!important;
  font-weight:900!important;
  display:inline-flex!important;
  align-items:center!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-card-head .therapy-chip{
  min-height:30px!important;
  padding:0 12px!important;
  border-radius:999px!important;
  font-size:11px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-meta-grid{
  grid-area:meta!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  margin:0!important;
  min-width:0!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-meta-item{
  min-height:76px!important;
  padding:12px 14px!important;
  border:1px solid #dbe4ef!important;
  border-radius:14px!important;
  background:#f8fbff!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-meta-label{
  margin-bottom:6px!important;
  color:#7d90aa!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-meta-item strong{
  font-size:13px!important;
  line-height:1.45!important;
  color:#10243f!important;
  font-weight:900!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-actions{
  grid-area:actions!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  flex-wrap:nowrap!important;
  white-space:nowrap!important;
  align-self:center!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-actions .btn{
  min-height:40px!important;
  height:40px!important;
  padding:0 16px!important;
  border-radius:12px!important;
  font-size:12px!important;
  font-weight:850!important;
  white-space:nowrap!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-note-alert,
#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-request-reason{
  grid-area:note!important;
  margin:0!important;
  padding:16px!important;
  border-radius:14px!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-observation-box{
  grid-area:obs!important;
  margin:0!important;
  padding:16px!important;
  border-radius:14px!important;
  background:#fbfdff!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-observation-title{
  font-size:12px!important;
  font-weight:900!important;
  margin-bottom:8px!important;
}

#page-therapy.crm-therapy-list-view #therapy-page-body .therapy-observation-text{
  font-size:12.5px!important;
  line-height:1.6!important;
  max-height:none!important;
}

body.crm-night-mode #page-therapy.crm-therapy-list-view #therapy-page-body .therapy-session-card,
body.crm-night-mode #page-therapy.crm-therapy-list-view #therapy-page-body .therapy-request-card,
body.crm-night-mode #page-therapy.crm-therapy-list-view #therapy-page-body .therapy-meta-item,
body.crm-night-mode #page-therapy.crm-therapy-list-view #therapy-page-body .therapy-observation-box{
  background:#2b323a!important;
  border-color:#46515e!important;
}

@media(max-width:1220px){
  #page-therapy.crm-therapy-list-view #therapy-page-body .therapy-session-card,
  #page-therapy.crm-therapy-list-view #therapy-page-body .therapy-request-card{
    grid-template-columns:minmax(260px,.92fr) minmax(430px,1.5fr)!important;
    grid-template-areas:
      "head actions"
      "meta meta"
      "note note"
      "obs obs"!important;
  }

  #page-therapy.crm-therapy-list-view #therapy-page-body .therapy-actions{
    justify-content:flex-end!important;
  }
}

@media(max-width:860px){
  #page-therapy.crm-therapy-list-view #therapy-page-body .therapy-session-card,
  #page-therapy.crm-therapy-list-view #therapy-page-body .therapy-request-card{
    grid-template-columns:1fr!important;
    grid-template-areas:
      "head"
      "meta"
      "actions"
      "note"
      "obs"!important;
    padding:16px!important;
  }

  #page-therapy.crm-therapy-list-view #therapy-page-body .therapy-meta-grid{
    grid-template-columns:1fr!important;
  }

  #page-therapy.crm-therapy-list-view #therapy-page-body .therapy-actions{
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
  }
}
