/* Compact user cards for database view */
.resident-card-list{
  gap:12px!important;
}

.resident-card-list .resident-item{
  margin:0;
}

.resident-card-shell{
  display:grid;
  grid-template-columns:82px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:15px 16px;
  border:1px solid #d8ead5;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 24px rgba(48,39,30,.07);
  position:relative;
  overflow:hidden;
}

.resident-avatar{
  width:68px;
  height:68px;
  margin-left:6px;
  display:grid;
  place-items:center;
  border-radius:999px;
  overflow:hidden;
  background:linear-gradient(135deg,#e9f6e9,#e7f3fb);
  border:3px solid rgba(255,255,255,.86);
  box-shadow:0 10px 24px rgba(48,39,30,.12),0 0 0 1px rgba(47,125,59,.16);
  color:#164f25;
  font-size:22px;
  font-weight:950;
  text-transform:uppercase;
}

.resident-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.resident-card-shell::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:6px;
  background:linear-gradient(180deg,var(--green),var(--gold));
}

.resident-card-list .resident-item.active .resident-card-shell{
  border-color:#78b56f;
  box-shadow:0 0 0 4px rgba(47,125,59,.14),0 12px 28px rgba(48,39,30,.08);
}

.resident-card-list .resident-card-main{
  width:100%;
  padding:4px 0 4px 10px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.resident-card-list .resident-card-main::before{
  display:none!important;
}

.resident-card-list .resident-card-main strong{
  display:block;
  margin-bottom:5px;
  color:#292725;
  font-size:22px;
  line-height:1.1;
}

.resident-card-list .resident-card-main span{
  display:block;
  color:#665d56;
  font-size:15px;
  font-weight:850;
}

.resident-card-list .resident-card-main small{
  display:block;
  margin-top:5px;
  color:#7a716a;
  font-size:12px;
}

.resident-card-list .status-badge{
  display:inline-flex;
  width:max-content;
  margin-top:8px;
  padding:5px 10px;
  border-radius:999px;
  background:#e9f6e9;
  color:#164f25;
  font-size:12px;
  font-style:normal;
  font-weight:950;
}

.resident-card-list .status-badge.review{
  background:#fff4d8;
  color:#8a4d0d;
}

.resident-card-list .status-badge.archived{
  background:#f1eee9;
  color:#5f5953;
}

.resident-card-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
  min-width:310px;
}

.resident-card-actions button{
  min-height:42px;
  padding:9px 13px;
  border-radius:14px;
  background:#fff;
  border:1px solid #d8d0c7;
  box-shadow:none;
  color:#315064;
  font-size:13px;
  font-weight:950;
}

.resident-card-actions button[data-action="qr"],
.resident-card-actions button[data-action="pdf"]{
  min-width:64px;
}

.resident-card-actions button[data-action="view"],
.resident-card-actions button[data-action="edit"]{
  background:#e9f6e9;
  border-color:#cce7c9;
  color:#164f25;
}

.resident-card-actions button:hover{
  transform:none;
  border-color:#78b56f;
  box-shadow:0 0 0 3px rgba(47,125,59,.12);
}

@media(max-width:700px){
  .resident-card-shell{
    grid-template-columns:58px 1fr;
    gap:10px;
    padding:14px 12px 12px;
  }

  .resident-avatar{
    width:52px;
    height:52px;
    margin-left:2px;
    font-size:17px;
  }

  .resident-card-actions{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    min-width:0;
  }

  .resident-card-actions button{
    min-height:40px;
    padding:8px 6px;
    font-size:12px;
  }
}

@media(max-width:430px){
  .resident-card-actions{
    grid-template-columns:repeat(2,1fr);
  }
}
