/* Approved compact search and request layouts; original CRM styles retained. */
.rfh-search-first{display:grid;grid-template-columns:minmax(180px,2fr) 130px 160px 160px minmax(160px,1fr);gap:12px;margin:0;align-items:end}.rfhp-filters{position:relative;overflow:visible}.rfh-search-first>.rfhp-field{min-width:0}.rfh-search-first input,.rfh-search-first select{height:44px}.rfh-filter-popover{position:relative;min-width:0}.rfh-filter-popover>summary{display:flex;align-items:center;gap:7px;list-style:none;border:1px solid #cbdad3;background:#fff;border-radius:7px;padding:12px;color:#224b3d;font-size:13px;cursor:pointer;min-height:44px;box-sizing:border-box}.rfh-filter-popover>summary::-webkit-details-marker{display:none}.rfh-filter-popover svg{width:21px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;flex-shrink:0}.rfh-count-options,.rfh-filter-price>[data-price-control]{position:absolute;top:calc(100% + 8px);left:0;z-index:30;background:white;box-shadow:0 8px 32px #143c2526;border:1px solid #d6e3db;border-radius:9px;padding:18px;width:320px;max-width:85vw;box-sizing:border-box}.rfh-count-options legend{font-size:12px;font-weight:600;float:left;width:100%;margin-bottom:12px}.rfh-count-options label{display:inline-block;position:relative;cursor:pointer}.rfh-count-options input{position:absolute;opacity:0;width:1px;height:1px}.rfh-count-options label>span{display:block;border:1px solid #d5e0d9;padding:8px 10px;font-size:12px;color:#284b3c}.rfh-count-options input:checked+span{background:#1b6049;color:#fff}.rfh-count-options input:focus-visible+span{outline:2px solid #1665cb;outline-offset:2px}.rfh-advanced-search{margin-top:16px;padding-top:0;border-top:0}.rfh-saved-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;background:#fff;border:1px solid #dce5ed;border-radius:8px;margin:10px 0;min-width:0}.rfh-saved-row>div:first-child{min-width:0}.rfh-saved-row h3,.rfh-saved-row p{margin:0 0 7px}.rfh-saved-row h3,.rfh-saved-row strong{font-size:13px;color:#164c88}.rfh-saved-row p{font-size:12px;color:#54718a;line-height:1.5}.rfh-saved-row small{font-size:10px;color:#7a90a4}.rfh-saved-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.rfh-saved-actions button,.rfh-saved-actions a{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #d2dfeb;border-radius:6px;background:white;padding:8px;color:#245b92;font-size:12px;text-decoration:none;cursor:pointer}.rfh-saved-actions svg{width:18px;height:18px}.rfh-saved-actions button:hover,.rfh-saved-actions a:hover{background:#f1f6fa}.rfh-saved-actions button[data-rfh-saved=delete]{color:#a7353d}.rfh-builder-modal{width:min(1380px,96vw)!important;max-width:1380px!important}.rfh-builder-body{display:grid;grid-template-columns:340px 1fr;gap:0;overflow:auto;max-height:72vh;padding:0!important}.rfh-builder-filters{background:#f7fafc;border-right:1px solid #dce5ed;padding:20px;min-width:0}.rfh-builder-filters .rfh-search-first{display:flex;flex-direction:column;align-items:stretch;margin-top:20px}.rfh-builder-filters .rfh-search-groups{display:flex;flex-direction:column;gap:10px}.rfh-builder-filters .rfh-search-group{width:100%;box-sizing:border-box}.rfh-builder-filters .rfh-search-grid{grid-template-columns:1fr 1fr}.rfh-builder-filters .rfh-filter-popover[open]>.rfh-count-options,.rfh-builder-filters .rfh-filter-price>[data-price-control]{position:static;width:100%;margin-top:8px;box-shadow:none}.rfh-builder-filters .rfh-filter-popover[open]{margin-bottom:8px}.rfh-builder-filters input,.rfh-builder-filters select{box-sizing:border-box;width:100%;max-width:100%;height:38px;border:1px solid #cbd9e3;border-radius:6px;padding:8px;background:white}.rfh-builder-filters input[type=checkbox]{width:17px;height:17px}.rfh-builder-filters input[type=range]{padding:0}.rfh-builder-filters .rfh-option-check{min-height:44px}.rfh-builder-filters .rfhp-field{display:flex;flex-direction:column;gap:5px}.rfh-builder-filters .rfhp-field>span{font-size:12px}.rfh-builder-filters .rfh-advanced-search>summary{width:100%;box-sizing:border-box}.rfh-builder-filters .rfh-search-group>.rfh-search-grid{display:flex;flex-direction:column;align-items:stretch}.rfh-builder-filters .rfh-search-range>div{display:grid}.rfh-builder-body>.form-error{grid-column:1/-1;padding:12px 20px}.rfh-builder-body>#rfh-builder-results{padding:24px;min-width:0}.rfh-builder-summary{font-size:12px;color:#597894;background:#eef5fa;padding:12px;border-radius:7px}.rfh-builder-body h3{font-size:17px;margin:16px 0}.rfh-builder-body h3 small{display:block;margin-top:8px;font-size:11px;font-weight:400;color:#6a859b}.rfh-builder-homes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.rfh-builder-homes article{border:1px solid #dbe6ee;border-radius:8px;overflow:hidden;padding-bottom:14px;background:white}.rfh-builder-homes img{width:100%;height:150px;object-fit:cover}.rfh-builder-homes strong,.rfh-builder-homes p,.rfh-builder-homes small{display:block;margin:10px 12px 0}.rfh-builder-homes strong{font-size:18px;color:#183c56}.rfh-builder-homes p{font-size:12px}.rfh-builder-homes small{font-size:11px;color:#65819a}.rfh-area-backdrop,.rfh-confirm-backdrop{z-index:10050!important}.rfh-area-dialog,.rfh-confirm-dialog{background:white;width:min(850px,94vw);max-height:94vh;overflow:auto;border:1px solid #d5e2ec;border-radius:12px;padding:24px;box-shadow:0 16px 80px #122a4440}.rfh-area-dialog header,.rfh-area-dialog footer,.rfh-confirm-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.rfh-area-dialog h2,.rfh-confirm-dialog h2{font-size:20px;margin:0 0 12px;color:#183d59}.rfh-area-dialog header button{border:0;background:none;font-size:26px;cursor:pointer}.rfh-area-dialog p,.rfh-confirm-dialog p{font-size:13px;line-height:1.6;color:#5c7689}.rfh-area-tools{display:flex;gap:10px;margin:12px 0}#rfh-area-map{height:min(48vh,430px);background:#edf3ef;border-radius:8px;border:1px solid #d6e0db}.rfh-confirm-dialog{width:min(470px,90vw)}.rfh-danger{background:#b03943!important;color:white!important;border-color:#b03943!important}.rfh-confirm-dialog footer{justify-content:flex-end;margin-top:24px}.rfh-request-group{border:1px solid #ead58e;border-radius:7px;background:#fffdf4;margin:8px 0}.rfh-request-group>summary{display:flex;align-items:center;gap:12px;padding:12px 15px;cursor:pointer;background:#fff6d6;list-style:none;font-size:12px;color:#644c12}.rfh-request-group>summary::-webkit-details-marker,.rfh-request>summary::-webkit-details-marker{display:none}.rfh-request-group>summary>span:nth-last-child(2){margin-left:auto;font-size:11px}.rfh-request-group.overdue{border-color:#e49c9c}.rfh-request-group.overdue>summary{background:#ffe9e9;color:#8b2d32}.rfh-request-symbol{font-size:16px;font-weight:700}.rfh-request-symbol.showing{color:#167349}.rfh-group-count{background:#d72d45;color:white;padding:3px 6px;border-radius:20px;font-size:10px}.rfh-request-group>div{padding:0 12px}.rfh-request{margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;border-bottom:1px solid #e0e7eb!important}.rfh-request>summary{display:flex;gap:16px;justify-content:space-between;align-items:center;list-style:none;padding:13px 4px;cursor:pointer;font-size:12px}.rfh-request>summary:before{content:'›';font-size:20px;color:#4d6f88}.rfh-request[open]>summary:before{content:'⌄'}.rfh-request>summary a{color:#2066a4;text-decoration:underline;flex:1;overflow-wrap:anywhere}.rfh-request>summary span{font-size:10px}.rfh-request-content{padding:0 12px 15px 24px}.rfh-request-content p{font-size:12px;line-height:1.6}.rfh-request-message{white-space:pre-wrap;overflow-wrap:anywhere}.rfh-request-content footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.rfh-request-contact{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px}.rfh-contact-action{display:inline-flex;gap:5px;align-items:center;padding:6px 9px;border:1px solid #d5e2ec;border-radius:5px;text-decoration:none;color:#245e94}.rfh-contact-action.preferred{background:#edf7f1;border-color:#7eae94;color:#175c37}.rfh-request-content button{border:1px solid #c2d4df;padding:6px 10px;border-radius:5px;background:white;color:#305b79;font-size:11px;cursor:pointer}.rfh-request-content small{font-size:10px;color:#6b8598}
@media(max-width:1100px){.rfh-search-first{grid-template-columns:2fr 1fr 1fr}.rfh-builder-homes{grid-template-columns:1fr 1fr}.rfh-builder-body{grid-template-columns:300px 1fr}.rfh-saved-row{flex-wrap:wrap}.rfh-saved-actions{flex-wrap:wrap}.rfh-saved-row>div:first-child{flex:1}}
@media(max-width:650px){.rfh-search-first{grid-template-columns:1fr 1fr;gap:10px}.rfh-search-first>.rfhp-field:first-child{grid-column:1/-1}.rfh-count-options,.rfh-filter-price>[data-price-control]{width:280px;left:auto;right:0}.rfh-filter-price>[data-price-control]{left:0;right:auto}.rfh-builder-body{display:flex;flex-direction:column}.rfh-builder-filters{border-right:0;border-bottom:1px solid #dce5ed}.rfh-builder-homes{grid-template-columns:1fr 1fr}.rfh-builder-homes img{height:110px}.rfh-saved-row{padding:14px;gap:12px}.rfh-saved-actions{width:100%;justify-content:flex-start}.rfh-area-dialog{padding:16px}.rfh-request-group>summary{gap:8px;padding:12px 9px}.rfh-request>summary{flex-wrap:wrap}.rfh-request>summary span{padding-left:20px}.rfh-request-contact{gap:7px}.rfh-request-content{padding-left:8px}.hs-modal-footer{flex-wrap:wrap}}
.rfh-saved-actions button:disabled{opacity:.42;cursor:not-allowed}.rfhp-body .hs-modal{width:min(720px,96vw);max-width:720px;background:white;border-radius:12px;overflow:hidden}.rfhp-body .hs-modal-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dce5ed;padding:20px 24px}.rfhp-body .hs-modal-header h2{font-size:22px;margin:6px 0}.rfhp-body .hs-modal-header span{font-size:12px;color:#6c8392}.rfhp-body .hs-modal-header .icon-btn{background:transparent;border:0;font-size:26px}.rfhp-body .hs-modal-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px 24px;border-top:1px solid #dce5ed}.rfhp-body .hs-modal-footer>span{font-size:11px;color:#6b8190}.rfhp-body .hs-settings-form{padding:24px}.rfhp-body .hs-settings-form .field{display:flex;flex-direction:column;gap:8px;font-size:13px}.rfhp-body .hs-settings-form input{padding:12px;border:1px solid #cddbe4;border-radius:6px}.rfh-saved-row .rfhp-off{font-size:10px;background:#edf2f6;padding:5px 8px;white-space:nowrap}.rfh-builder-modal .hs-modal-footer .btn.primary,.rfh-area-dialog .btn.primary{background:#1b6049;border-color:#1b6049;color:white}
/* 0.7: tighter request rows while retaining labels and wrapping on phones. */
.rfh-pinned-requests>header{margin-bottom:8px}.rfh-request-group{margin:6px 0}.rfh-request-group>summary{padding:9px 12px;min-height:38px;box-sizing:border-box}.rfh-request-group>div{padding:0 10px}.rfh-request>summary{gap:10px;padding:9px 2px}.rfh-request>summary a{font-size:11px}.rfh-request>summary .rfh-request-mls{display:inline-flex;align-items:center;gap:5px;font-size:10px;white-space:nowrap}.rfh-request-mls button{padding:4px 7px;min-height:28px;border:1px solid #c8d9e4;border-radius:5px;background:white;color:#315e82;cursor:pointer;font-size:10px}.rfh-request-content{padding:0 2px 10px 22px}.rfh-request-content p{margin:2px 0 8px;font-size:11px;line-height:1.5}.rfh-request-content .rfh-request-tour{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:4px}.rfh-request-tour small{font-size:10px}.rfh-request-content footer{gap:8px}.rfh-request-contact{gap:7px;font-size:10px}.rfh-contact-action{padding:5px 7px;min-height:28px;box-sizing:border-box}.rfh-request-content footer>button{min-height:28px;padding:5px 8px;font-size:10px}.rfh-request>summary .rfh-request-age{padding-left:0;white-space:nowrap}
@media(max-width:650px){.rfh-request>summary{gap:7px;flex-wrap:wrap}.rfh-request>summary a{min-width:65%;font-size:12px}.rfh-request>summary .rfh-request-mls{padding-left:18px;font-size:11px}.rfh-request-content{padding-left:18px}.rfh-contact-action,.rfh-request-content footer>button,.rfh-request-mls button{min-height:40px}.rfh-request-content p{font-size:12px}.rfh-request-contact{gap:6px}}
.rfh-builder-body>section{padding:22px;min-width:0}.rfh-builder-body.rfh-report-preview-only{grid-template-columns:1fr}.rfh-builder-body.rfh-report-preview-only>.rfh-builder-filters{display:none}.hs-settings-form{max-height:68vh;overflow:auto}.rfh-report-options{padding:14px;border:1px solid #dce5ed;border-radius:8px;margin:16px 0;display:grid;gap:13px}.rfh-report-options legend{font-size:12px;font-weight:600;color:#254d70}.rfh-report-options>div{display:flex;gap:13px;flex-wrap:wrap}.rfh-report-options label{font-size:12px}.rfh-report-options input[type=checkbox]{width:16px;height:16px;accent-color:#1b6049}.rfh-report-options .field{display:flex;flex-direction:column;gap:7px}.rfh-report-options select,.rfh-report-options input[type=text]{width:100%;min-height:38px;border:1px solid #cbd9e4;border-radius:6px;padding:7px;background:white;color:#214663}.rfh-report-options small{font-size:11px;color:#647f92;line-height:1.5}.rfh-report-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.rfh-report-stats>div{background:#eef5f9;border:1px solid #dce8f0;border-radius:7px;padding:13px}.rfh-report-stats strong{display:block;font-size:19px;color:#214864;overflow-wrap:anywhere}.rfh-report-stats span{display:block;font-size:10px;color:#618198;margin-top:6px}
@media(max-width:650px){.rfh-builder-body>section{padding:14px}.rfh-report-stats{gap:6px}.rfh-report-stats>div{padding:9px}.rfh-report-stats strong{font-size:14px}.rfh-report-stats span{font-size:10px}}
.rfh-client-report{background:white;border:1px solid #d9e5ec;padding:0 18px 16px;border-radius:8px;margin:12px 0}.rfh-client-report>summary{padding:16px 0;display:flex;justify-content:space-between;cursor:pointer;color:#235a83}.rfh-client-report>p{font-size:12px;color:#57788a}.rfh-client-report>small{font-size:11px;color:#6c8799}.rfh-client-report .rfh-report-stats{margin:15px 0}.rfh-client-report>summary span{font-size:12px}
