.rh-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.62);z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px}.rh-modal{width:min(1180px,96vw);max-height:92vh;background:#fff;border-radius:24px;overflow:auto;box-shadow:0 30px 100px rgba(15,23,42,.35)}.rh-modal-head{display:flex;align-items:center;justify-content:space-between;padding:22px 26px;border-bottom:1px solid #e5e7eb}.rh-modal-head h2{margin:0;font-size:24px}.rh-modal-head p{margin:5px 0 0;color:#667085}.rh-close{width:42px;height:42px;border:0;border-radius:50%;background:#f3f4f6;font-size:24px;cursor:pointer}.rh-customer-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:18px;padding:20px}.rh-panel{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:18px;margin-bottom:16px}.rh-panel h3{margin:0 0 12px}.rh-panel label{display:block;font-size:12px;color:#667085;font-weight:800;margin:12px 0 6px;text-transform:uppercase;letter-spacing:.04em}.rh-panel input,.rh-panel select,.rh-panel textarea{width:100%;border:1px solid #d0d5dd;border-radius:14px;padding:12px 14px;font-size:14px}.rh-panel textarea{min-height:90px;resize:vertical}.rh-panel button,.rh-inline-form button{border:0;background:#2563eb;color:#fff;border-radius:14px;padding:12px 16px;font-weight:800;cursor:pointer;margin-top:10px}.rh-inline-form{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:center;margin-top:12px}.service-form{grid-template-columns:1.2fr .9fr .8fr .7fr auto}.rh-note,.rh-service,.rh-timeline-item{border:1px solid #e5e7eb;border-radius:16px;padding:14px;margin-top:10px;background:#f8fafc}.rh-note small,.rh-service small,.rh-timeline-item small{display:block;color:#667085;margin-top:6px}.rh-service{display:flex;align-items:center;justify-content:space-between;gap:12px}.rh-service button{background:#fff;color:#dc2626;border:1px solid #fee2e2;padding:8px 12px;margin:0}.rh-badge{display:inline-flex;align-items:center;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:900}.badge-blue{background:#dbeafe;color:#1d4ed8}.badge-orange{background:#ffedd5;color:#c2410c}.badge-purple{background:#ede9fe;color:#6d28d9}.badge-green{background:#dcfce7;color:#15803d}.badge-red{background:#fee2e2;color:#b91c1c}.badge-gray{background:#f3f4f6;color:#374151}.rh-tags{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.rh-tag{display:inline-flex;gap:8px;align-items:center;background:#eef2ff;color:#3730a3;border-radius:999px;padding:8px 10px;font-weight:800}.rh-tag button{margin:0;padding:0 5px;border-radius:50%;background:#fff;color:#3730a3}.empty,.muted{color:#667085}@media(max-width:900px){.rh-customer-grid{grid-template-columns:1fr}.rh-inline-form,.service-form{grid-template-columns:1fr}}

/* Phase 3A v3 scroll/layout hardening */
.rh-modal-backdrop{
  overflow-y:auto!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:24px 16px!important;
}
.rh-modal.rh-customer-modal{
  max-height:calc(100vh - 48px)!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
}
.rh-customer-modal .rh-customer-grid{
  align-items:start;
}
body:has(#rhCustomerModal){
  overflow:hidden;
}
@media(max-width:900px){
  .rh-modal.rh-customer-modal{width:96vw!important;}
}
