/* NEST IN - QUICK RENT PAY SELECTOR V2 */

#qprOverlay{
  position:fixed;
  inset:0;
  z-index:10050;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(15,25,46,.55);
  backdrop-filter:blur(5px);
}

#qprOverlay.hidden{
  display:none!important;
}

.qpr-card{
  width:min(760px,100%);
  max-height:90vh;
  overflow:auto;
  background:#fff;
  border:1px solid #e1e6ef;
  border-radius:22px;
  box-shadow:0 30px 80px rgba(15,25,46,.24);
}

.qpr-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:24px 26px 20px;
  background:linear-gradient(125deg,#17233c,#3156d3);
  color:#fff;
  border-radius:21px 21px 0 0;
}

.qpr-kicker{
  display:block;
  margin-bottom:5px;
  color:#cfd9ff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.qpr-head h2{
  margin:0;
  color:#fff!important;
  font-size:25px;
}

.qpr-head p{
  margin:5px 0 0;
  color:#dce4fb!important;
  font-size:12px;
}

.qpr-close{
  width:38px;
  height:38px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:11px;
  background:rgba(255,255,255,.1);
  color:#fff;
  font-size:20px;
  cursor:pointer;
}

.qpr-body{
  padding:24px 26px 26px;
}

.qpr-flow{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.qpr-field label{
  display:block;
  margin:0 0 7px;
  color:#566278;
  font-size:10px;
  font-weight:850;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.qpr-field select{
  width:100%;
  height:48px;
  padding:0 12px;
  background:#fff;
  color:#17233c;
  border:1px solid #dce2ec;
  border-radius:11px;
  font-weight:700;
}

.qpr-field select:focus{
  outline:none;
  border-color:#3156d3;
  box-shadow:0 0 0 3px rgba(49,86,211,.1);
}

.qpr-preview{
  margin-top:20px;
  padding:18px;
  background:#f7f8fc;
  border:1px solid #e2e7ef;
  border-radius:16px;
}

.qpr-empty{
  color:#7a8598;
  font-size:12px;
  text-align:center;
  padding:12px;
}

.qpr-resident{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding-bottom:15px;
  border-bottom:1px solid #e2e7ef;
}

.qpr-resident h3{
  margin:0;
  color:#17233c;
  font-size:18px;
}

.qpr-resident p{
  margin:4px 0 0;
  color:#718096;
  font-size:11px;
}

.qpr-status{
  padding:5px 9px;
  border-radius:999px;
  background:#e8f6ef;
  color:#18865b;
  font-size:9px;
  font-weight:900;
}

.qpr-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:15px;
}

.qpr-stat{
  padding:12px 13px;
  background:#fff;
  border:1px solid #e2e7ef;
  border-radius:12px;
}

.qpr-stat span{
  display:block;
  margin-bottom:4px;
  color:#7a8598;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}

.qpr-stat strong{
  display:block;
  color:#17233c;
  font-size:14px;
}

.qpr-stat.outstanding strong{
  color:#c44855;
}

.qpr-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-top:20px;
}

.qpr-cancel,
.qpr-pay{
  min-height:44px;
  padding:0 18px;
  border-radius:10px;
  font-weight:850;
  cursor:pointer;
}

.qpr-cancel{
  background:#fff;
  color:#526074;
  border:1px solid #dce2ec;
}

.qpr-pay{
  background:linear-gradient(135deg,#3156d3,#2444b0);
  color:#fff;
  border:1px solid #3156d3;
  box-shadow:0 7px 18px rgba(49,86,211,.18);
}

.qpr-pay:disabled{
  cursor:not-allowed;
  opacity:.45;
  box-shadow:none;
}

#qprMessage{
  min-height:18px;
  margin-top:12px;
  color:#c44855;
  font-size:11px;
}

@media(max-width:720px){
  .qpr-flow,
  .qpr-stats{
    grid-template-columns:1fr;
  }

  .qpr-card{
    border-radius:16px;
  }

  .qpr-head{
    border-radius:15px 15px 0 0;
  }
}
