/* Simplified app workflow */
.screen-user .module-home,
.screen-user .editor,
.screen-user .print-sheet{
  display:none!important;
}

.screen-user .module-title{
  display:block;
}

.residence-cover-video{
  object-fit:cover;
  object-position:center center;
  background:#e9f6e9 url('assets/residencia-santa-teresa-fachada.svg') center/cover no-repeat;
}

.screen-user{
  grid-template-columns:minmax(0,1fr)!important;
}

.screen-user .sidebar{
  position:relative;
  top:0;
  max-height:none;
  width:min(880px,100%);
  margin:0 auto;
}

.screen-user .search-card,
.screen-user .list-title,
.screen-user .resident-list,
.screen-user .vault-stats,
.screen-user .secure-panel,
.screen-user .toolbar,
.screen-user #dbFilterBar{
  display:none!important;
}

.screen-form .editor{
  display:block!important;
}

.report-user-selector{
  margin-bottom:14px;
  padding:16px;
  border-radius:24px;
  background:#fff;
  border:1px solid rgba(184,219,183,.82);
  box-shadow:0 10px 24px rgba(48,39,30,.07);
}

.report-selector-head{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:12px;
  align-items:center;
}

.report-selector-head h3{
  margin:0 0 3px;
  color:#164f25;
  font-size:clamp(22px,3.2vw,30px);
  line-height:1.05;
}

.report-selector-head p{
  margin:0;
  color:#665d56;
  line-height:1.45;
  font-size:14px;
}

.report-selector-search{
  margin-top:10px;
}

.report-user-list{
  display:grid;
  gap:8px;
  margin-top:10px;
}

.report-user-card,
.report-empty{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-radius:18px;
  background:#fff;
  border:1px solid #d8ead5;
  box-shadow:none;
}

.report-user-card{
  cursor:pointer;
}

.report-user-card:focus-visible{
  outline:3px solid rgba(47,125,59,.22);
  outline-offset:2px;
}

.report-user-card strong,
.report-empty strong{
  display:block;
  color:#164f25;
}

.report-user-card span,
.report-empty span{
  display:block;
  margin-top:3px;
  color:#665d56;
  font-size:13px;
}

.report-user-card button,
.report-empty button{
  min-height:40px;
  border-radius:14px;
  padding:8px 14px;
  background:linear-gradient(135deg,var(--green),var(--green-dark));
  color:#fff;
  font-size:13px;
}

#reportChangeUserBtn{
  display:none;
}

.report-user-card.selected{
  border-color:#78b56f;
  box-shadow:0 0 0 4px rgba(47,125,59,.14),0 8px 18px rgba(48,39,30,.06);
}

.report-user-selector.has-selection{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border-radius:20px;
  background:linear-gradient(135deg,#e9f6e9,#fff);
}

.report-user-selector.has-selection .report-selector-head{
  display:grid;
  grid-template-columns:1fr auto;
}

.report-user-selector.has-selection .report-selector-head h3{
  margin:0;
  font-size:18px;
}

.report-user-selector.has-selection .report-selector-head h3::after{
  content:": " attr(data-user-name);
}

.report-user-selector.has-selection .report-selector-head .eyebrow,
.report-user-selector.has-selection .report-selector-head p,
.report-user-selector.has-selection #reportScanQrBtn,
.report-user-selector.has-selection .report-selector-search,
.report-user-selector.has-selection .report-user-list{
  display:none!important;
}

.report-user-selector.has-selection #reportChangeUserBtn{
  display:inline-grid;
}

.screen-form .editor-head{
  margin-top:2px;
  padding:12px 14px;
  border:1px solid #d8ead5;
  border-radius:22px;
  background:#fff;
}

.screen-form .editor-head .eyebrow{
  color:#164f25;
}

.screen-form .editor-head h2{
  font-size:clamp(22px,3vw,30px);
}

.screen-form #appStatus{
  margin:10px 0;
}

.screen-form .guided-hero{
  display:none!important;
}

.screen-form .quick-actions{
  display:none!important;
}

.screen-form .wizard-card{
  margin-top:12px!important;
  padding:12px!important;
  border-radius:22px!important;
  background:#fff!important;
}

.screen-form .progress-head{
  font-size:14px;
}

.screen-form .step-pills{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  margin-top:10px;
}

.screen-form .step-pill{
  min-height:42px;
  padding:8px 6px!important;
  border-radius:14px!important;
  font-size:12px!important;
  box-shadow:none!important;
}

.screen-form .step-pill span{
  width:20px!important;
  height:20px!important;
  margin-right:4px!important;
}

.screen-form .wizard-actions{
  padding:10px!important;
  border-radius:18px!important;
}

.screen-form .photo-card{
  display:none!important;
  grid-column:1/-1;
}

.quick-person-photo{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:128px minmax(0,1fr);
  gap:16px;
  align-items:start;
}

.quick-person-photo-preview{
  width:112px;
  height:112px;
  display:grid;
  place-items:center;
  border-radius:999px;
  overflow:hidden;
  background:linear-gradient(135deg,#e9f6e9,#e7f3fb);
  border:4px solid rgba(255,255,255,.92);
  box-shadow:0 12px 28px rgba(48,39,30,.12),0 0 0 1px rgba(47,125,59,.16);
  color:#164f25;
  font-weight:950;
}

.quick-person-photo-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.quick-person-photo input[type="file"]{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.quick-person-photo button{
  grid-column:auto!important;
  width:auto!important;
  margin:0 8px 8px 0;
}

.screen-form .photo-card h3,
.screen-form .photo-card .note{
  grid-column:2;
}

.screen-form .photo-card h3{
  margin-top:6px;
}

.screen-form .photo-card .photo-box{
  grid-column:1;
  grid-row:1 / span 4;
  min-height:340px;
}

.screen-form .photo-card input,
.screen-form .photo-card button{
  grid-column:2;
  max-width:360px;
}

.screen-form .photo-card #photoInput{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.screen-form .photo-card #choosePhotoBtn,
.screen-form .photo-card #removePhotoBtn{
  min-height:48px;
}

.screen-form .photo-card #removePhotoBtn{
  margin-top:0;
}

body{
  background:linear-gradient(135deg,#fbf8f2 0%,#edf4ea 52%,#f6eee9 100%)!important;
}

.sidebar,
.editor,
.print-sheet,
.app-hero{
  box-shadow:0 18px 48px rgba(48,39,30,.12)!important;
}

.form-section{
  box-shadow:0 10px 24px rgba(48,39,30,.07)!important;
}

.people-registry .people-picker{
  margin-top:12px;
}

.screen-user .people-picker{
  display:none;
}

.screen-user .people-stats-grid,
.legacy-user-field{
  display:none!important;
}

.quick-unit-field{
  grid-column:1/-1;
}

.screen-db .quick-person-form{
  display:none;
}

.screen-db .people-hero p{
  max-width:720px;
}

.screen-db .people-picker{
  margin-top:14px;
}

.screen-db .people-picker summary{
  font-size:18px;
}

@media(max-width:620px){
  .report-selector-head,
  .report-user-card,
  .report-empty,
  .report-user-selector.has-selection{
    grid-template-columns:1fr;
  }

  .report-selector-head button,
  .report-user-card button,
  .report-empty button{
    width:100%;
  }

  .screen-user .sidebar{
    width:100%;
  }

  .screen-form .photo-card{
    grid-template-columns:1fr;
  }

  .screen-form .photo-card h3,
  .screen-form .photo-card .note,
  .screen-form .photo-card input,
  .screen-form .photo-card button{
    grid-column:1;
  }

  .screen-form .step-pills{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .screen-form .photo-card .photo-box{
    grid-row:auto;
    min-height:300px;
  }
}
