/* LawApp V6.22 — Client Registry Redesign
   Compact CRM-style client rows for the lawyer workspace. */

.role-lawyer .lawyer-client-grid-v43,
.role-law-firm-admin .lawyer-client-grid-v43{
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
}

.role-lawyer .lawyer-client-card-v43,
.role-law-firm-admin .lawyer-client-card-v43{
  position:relative;
  display:grid;
  grid-template-columns:minmax(280px,1.08fr) minmax(410px,1.1fr) auto;
  align-items:center;
  gap:22px;
  width:100%;
  min-height:118px;
  padding:17px 18px;
  overflow:visible;
  background:#fff;
  border:1px solid #dfe8f1;
  border-radius:15px;
  box-shadow:0 5px 18px rgba(24,49,83,.045);
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.role-lawyer .lawyer-client-card-v43:hover,
.role-law-firm-admin .lawyer-client-card-v43:hover{
  border-color:#cbdceb;
  box-shadow:0 10px 26px rgba(24,49,83,.075);
  transform:translateY(-1px);
}

.role-lawyer .lawyer-client-card-v43>header,
.role-law-firm-admin .lawyer-client-card-v43>header{
  display:grid;
  grid-template-columns:56px minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  min-width:0;
  padding:0;
}
.role-lawyer .client-avatar-card-v43,
.role-law-firm-admin .client-avatar-card-v43{
  width:56px!important;
  height:56px!important;
  min-width:56px;
  border-radius:15px;
  overflow:hidden;
  background:linear-gradient(145deg,#eef5fb,#dbe9f5);
  border:1px solid #cddcea;
  box-shadow:0 4px 12px rgba(29,74,116,.08);
}
.role-lawyer .client-avatar-card-v43 img,
.role-law-firm-admin .client-avatar-card-v43 img{
  width:100%;height:100%;object-fit:cover;
}
.role-lawyer .client-card-identity-v622,
.role-law-firm-admin .client-card-identity-v622{min-width:0}
.role-lawyer .client-card-identity-v622>small,
.role-law-firm-admin .client-card-identity-v622>small{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin:0 0 4px;
  color:#6e8195;
  font-size:9.5px;
  line-height:1;
  font-weight:780;
  letter-spacing:.075em;
}
.role-lawyer .client-card-identity-v622>small::before,
.role-law-firm-admin .client-card-identity-v622>small::before{
  content:"";
  width:7px;height:7px;border-radius:50%;
  background:#34a46f;
  box-shadow:0 0 0 3px rgba(52,164,111,.11);
}
.role-lawyer .lawyer-client-card-v43 h2,
.role-law-firm-admin .lawyer-client-card-v43 h2{
  margin:0 0 3px;
  color:#183153;
  font-size:20px;
  line-height:1.15;
  font-weight:730;
  letter-spacing:-.025em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.role-lawyer .lawyer-client-card-v43 p,
.role-law-firm-admin .lawyer-client-card-v43 p{
  margin:0;
  color:#73869a;
  font-size:12.5px;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.role-lawyer .unread-badge-v43,
.role-law-firm-admin .unread-badge-v43{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:start;
  padding:5px 8px;
  border:1px solid #cfe2f4;
  border-radius:999px;
  background:#edf6ff;
  color:#356b9e;
  font-size:9.5px;
  line-height:1;
  font-weight:760;
  white-space:nowrap;
}

.role-lawyer .client-card-stats-v43,
.role-law-firm-admin .client-card-stats-v43{
  display:grid;
  grid-template-columns:.72fr 1.18fr 1fr;
  align-items:stretch;
  gap:0;
  min-width:0;
  overflow:hidden;
  border:1px solid #e4ebf2;
  border-radius:12px;
  background:#f8fbfe;
}
.role-lawyer .client-card-stats-v43>span,
.role-law-firm-admin .client-card-stats-v43>span{
  display:grid;
  grid-template-columns:30px minmax(0,1fr);
  align-items:center;
  gap:9px;
  min-width:0;
  padding:10px 12px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.role-lawyer .client-card-stats-v43>span+span,
.role-law-firm-admin .client-card-stats-v43>span+span{border-left:1px solid #e2eaf1}
.role-lawyer .client-card-stats-v43>span>svg,
.role-law-firm-admin .client-card-stats-v43>span>svg{
  width:30px;height:30px;padding:7px;
  border-radius:9px;
  background:#eaf3fb;
  color:#4f7cac;
  stroke:#4f7cac;
}
.role-lawyer .client-card-stats-v43 i,
.role-law-firm-admin .client-card-stats-v43 i{
  display:block;
  min-width:0;
  font-style:normal;
}
.role-lawyer .client-card-stats-v43 small,
.role-law-firm-admin .client-card-stats-v43 small{
  display:block;
  margin:0 0 3px;
  color:#8595a6;
  font-size:9px;
  line-height:1.15;
  font-weight:720;
  letter-spacing:.035em;
  text-transform:none;
}
.role-lawyer .client-card-stats-v43 b,
.role-law-firm-admin .client-card-stats-v43 b{
  display:block;
  margin:0;
  color:#223955;
  font-size:13.5px;
  line-height:1.2;
  font-weight:720;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.role-lawyer .lawyer-client-card-v43>footer,
.role-law-firm-admin .lawyer-client-card-v43>footer{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:stretch;
  gap:7px;
  min-width:142px;
  padding:0;
}
.role-lawyer .lawyer-client-card-v43>footer>a,
.role-law-firm-admin .lawyer-client-card-v43>footer>a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:38px;
  padding:0 13px;
  border-radius:10px;
  text-decoration:none;
  font-size:11.5px;
  line-height:1;
  font-weight:720;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
.role-lawyer .client-card-open-v622,
.role-law-firm-admin .client-card-open-v622{
  color:#fff!important;
  background:#356b9e;
  border:1px solid #356b9e;
  box-shadow:0 5px 12px rgba(53,107,158,.15);
}
.role-lawyer .client-card-open-v622:hover,
.role-law-firm-admin .client-card-open-v622:hover{background:#2d5d8c;border-color:#2d5d8c;transform:translateY(-1px)}
.role-lawyer .client-card-message-v622,
.role-law-firm-admin .client-card-message-v622{
  color:#355a7f!important;
  background:#fff;
  border:1px solid #d8e3ed;
}
.role-lawyer .client-card-message-v622:hover,
.role-law-firm-admin .client-card-message-v622:hover{background:#f5f9fd;border-color:#c7d8e7}

@media(max-width:1180px){
  .role-lawyer .lawyer-client-card-v43,
  .role-law-firm-admin .lawyer-client-card-v43{
    grid-template-columns:minmax(270px,1fr) minmax(350px,1.15fr);
  }
  .role-lawyer .lawyer-client-card-v43>footer,
  .role-law-firm-admin .lawyer-client-card-v43>footer{
    grid-column:1/-1;
    flex-direction:row;
    justify-content:flex-end;
    min-width:0;
    padding-top:11px;
    border-top:1px solid #edf1f5;
  }
  .role-lawyer .lawyer-client-card-v43>footer>a,
  .role-law-firm-admin .lawyer-client-card-v43>footer>a{min-width:132px}
}

@media(max-width:820px){
  .role-lawyer .lawyer-client-card-v43,
  .role-law-firm-admin .lawyer-client-card-v43{
    grid-template-columns:1fr;
    gap:14px;
    padding:15px;
  }
  .role-lawyer .client-card-stats-v43,
  .role-law-firm-admin .client-card-stats-v43{grid-template-columns:1fr 1fr 1fr}
  .role-lawyer .lawyer-client-card-v43>footer,
  .role-law-firm-admin .lawyer-client-card-v43>footer{grid-column:auto}
}

@media(max-width:560px){
  .role-lawyer .lawyer-client-card-v43>header,
  .role-law-firm-admin .lawyer-client-card-v43>header{grid-template-columns:50px minmax(0,1fr)}
  .role-lawyer .client-avatar-card-v43,
  .role-law-firm-admin .client-avatar-card-v43{width:50px!important;height:50px!important;min-width:50px}
  .role-lawyer .unread-badge-v43,
  .role-law-firm-admin .unread-badge-v43{grid-column:2;justify-self:start;margin-top:4px}
  .role-lawyer .client-card-stats-v43,
  .role-law-firm-admin .client-card-stats-v43{grid-template-columns:1fr}
  .role-lawyer .client-card-stats-v43>span+span,
  .role-law-firm-admin .client-card-stats-v43>span+span{border-left:0;border-top:1px solid #e2eaf1}
  .role-lawyer .lawyer-client-card-v43>footer,
  .role-law-firm-admin .lawyer-client-card-v43>footer{flex-direction:column}
  .role-lawyer .lawyer-client-card-v43>footer>a,
  .role-law-firm-admin .lawyer-client-card-v43>footer>a{width:100%}
}
