/* One visual frame; eight pixels between outer frame and inner data card. */
.mui-overlay { padding:16px!important; align-items:center!important; justify-content:center!important; background:rgba(0,0,0,.5)!important; }
.mui-frame { display:flex!important; flex-direction:column!important; width:92%!important; min-width:0!important; max-width:500px!important; max-height:86vh!important; max-height:86dvh!important; margin:0!important; padding:0!important; overflow:hidden!important; border:0!important; border-radius:12px!important; background:#fff!important; box-shadow:0 4px 20px #0005!important; color:#26333d; font-size:16px; line-height:1.5; }
.mui-frame.mui-compact { max-width:380px!important; }
.mui-head { display:flex!important; flex:none!important; align-items:center!important; justify-content:space-between!important; gap:8px!important; min-height:58px!important; padding:10px 12px!important; margin:0!important; background:#f5f5f5!important; border:0!important; border-bottom:1px solid #e4e8eb!important; }
.mui-head>h2,.mui-head>h3,.mui-head>strong,.mui-title { flex:1!important; min-width:0; order:0; margin:0!important; padding:0!important; font-size:17px!important; font-weight:700!important; line-height:1.4!important; text-align:left!important; color:#315f82!important; white-space:normal!important; overflow-wrap:anywhere; }
.mui-head>button { flex:none; order:1; }
.mui-head .mui-close { order:3; }
.mui-close,.mui-frame .work-people-cancel,.mui-frame .work-detail-close { flex:0 0 38px!important; width:38px!important; min-width:38px!important; max-width:38px!important; height:38px!important; min-height:38px!important; margin:0!important; padding:0!important; border:1px solid #cbd3da!important; border-radius:8px!important; background:#fff!important; color:#64717a!important; font-size:23px!important; font-weight:400!important; line-height:1!important; }
.mui-close:focus-visible,.mui-select-trigger:focus-visible { outline:3px solid #2c5f8d; outline-offset:2px; }
.mui-content { flex:1 1 auto!important; min-height:0!important; overflow:auto!important; padding:8px!important; margin:0!important; overscroll-behavior:contain; }
.mui-overlay[inert] .mui-content { overflow:hidden!important; }
.mui-inner-card,.mui-frame .property-contact-modal-card,.mui-frame .matching-card,.mui-frame .address-modal-card { min-width:0; padding:14px!important; margin:0!important; border:1px solid #e0e6eb!important; border-radius:10px!important; background:#fff!important; box-shadow:none!important; }
.mui-content>h3,.mui-inner-card>h3 { font-size:16px!important; font-weight:700!important; }
.mui-inner-card>.property-contact-role-picker { padding:0!important; }
.mui-frame .field-row { display:block; font-size:16px; line-height:1.5; }
.mui-frame .field-row .k,.mui-frame .matching-field-label,.mui-frame .opportunity-form-row label,.mui-frame .property-contact-form label,.mui-frame .property-form-row label { display:block; font-size:15px!important; font-weight:400!important; color:#6d7780!important; line-height:1.5; }
.mui-frame .field-row .v,.mui-frame .matching-field-value { display:block; font-size:16px!important; font-weight:400!important; color:#26333d; overflow-wrap:anywhere; white-space:pre-wrap; }
.mui-frame .contact-number,.mui-frame .matching-record-number,.mui-frame .property-contact-search-item strong { font-size:17px!important; font-weight:700!important; }
.mui-frame .property-contact-role,.mui-frame .meta,.mui-frame .contact-number-label,.mui-frame .property-contact-search-item span,.mui-frame [data-record-paging],.mui-frame .property-contact-pager { font-size:14px!important; font-weight:400; line-height:1.5; }
.mui-frame input:not([type=checkbox]):not([type=radio]),.mui-frame textarea,.mui-frame select,.mui-frame .address-select-control,.mui-select-trigger { font-size:16px!important; font-weight:400!important; line-height:1.5; }
.mui-frame button { font-size:16px; font-weight:600; line-height:1.4; border-radius:8px; white-space:normal; overflow-wrap:anywhere; }
.mui-frame button:not(.mui-close):not(.work-detail-close):not(.work-people-cancel):not(.mui-pager-control) { font-size:16px!important; font-weight:600!important; }
.mui-frame .mui-choice-row,.mui-frame .property-contact-search-item,.mui-frame .opportunity-list-row { font-weight:400!important; }
.mui-frame .property-association-card-title,.mui-frame .opportunity-list-number,.mui-frame .contact-name { font-size:17px!important; font-weight:700!important; }
.mui-frame .property-association-section-title,.mui-frame .property-contact-modal-card h3,.mui-frame .matching-contact-detail-body h3 { font-size:16px!important; font-weight:700!important; }
.mui-frame .opportunity-list-name { font-size:16px!important; font-weight:400!important; }
.mui-frame .opportunity-list-side,.mui-frame .opportunity-list-bottom,.mui-frame .opportunity-list-stage,.mui-frame small,.mui-frame #viewerCount { font-size:14px!important; }
.mui-frame .opportunity-history-row .label { font-size:15px!important; font-weight:400!important; }
.mui-frame .opportunity-history-row .value { font-size:16px!important; font-weight:400!important; }
.mui-frame .property-association-card-fields .field-row .k { width:auto; min-width:0; }
.mui-footer { display:flex!important; flex:none!important; flex-wrap:wrap; gap:10px!important; position:static!important; padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important; margin:0!important; border-top:1px solid #e4e8eb!important; background:#fff!important; }
.mui-footer>button { flex:1; min-width:0; min-height:46px; margin:0!important; padding:10px 12px; }
.mui-frame .mui-action-secondary { border:1px solid #cbd3da!important; background:#fff!important; color:#315f82!important; }
.mui-frame .mui-action-primary { border:1px solid #2c5f8d!important; background:#2c5f8d!important; color:#fff!important; }
.mui-frame .mui-action-danger { border:1px solid #c73535!important; background:#c73535!important; color:#fff!important; }
.mui-native-select { position:absolute!important; width:1px!important; height:1px!important; min-height:1px!important; padding:0!important; margin:0!important; opacity:0!important; pointer-events:none!important; clip-path:inset(50%); }
.mui-select-trigger { display:block; width:100%; min-width:0; min-height:48px; padding:10px 32px 10px 12px; margin:0; border:1px solid #cbd3da; border-radius:8px; text-align:left; color:#26333d; background:#fff; position:relative; }
.mui-select-trigger:after { content:'⌄'; position:absolute; right:12px; top:10px; color:#64717a; }
.mui-select-trigger:disabled { background:#f5f7f9; color:#76818b; }
.address-modal .mui-select-trigger { height:52px; min-height:52px; }
.mui-choice-row { display:block; width:100%; min-height:46px; padding:12px; margin:0 0 8px; border:1px solid #e0e6eb; background:#fff; text-align:left; color:#26333d; }
.mui-choice-row[aria-selected=true] { border-color:#315f82; background:#edf5fb; }
.mui-choice-row[aria-selected=true]:after { content:'✓'; float:right; color:#315f82; }
.mui-choice-row:disabled { color:#8b959c; background:#f5f7f9; }
.mui-frame .work-people-option { font-size:16px; font-weight:400; }
.mui-frame .opportunity-history-zone-title { font-size:16px; font-weight:700; }
.mui-frame .opportunity-history-row { font-size:16px; line-height:1.5; }
.mui-frame .mui-pager-control { font-size:15px!important; font-weight:600!important; white-space:nowrap!important; overflow-wrap:normal; flex:0 0 auto; width:max-content; min-width:0; height:44px; min-height:44px; padding:8px 6px!important; }
.mui-frame .mui-pager-row { gap:6px!important; }
.mui-head .mui-duplicate-back { display:none!important; }
/* Preserve the original special-purpose columns: select triggers are not remove buttons. */
.contact-phone-row { grid-template-columns:112px minmax(0,1fr) 42px; }
.contact-phone-row>.mui-select-trigger,.work-selected-person>.mui-select-trigger,.store-selected-contact>.mui-select-trigger { box-sizing:border-box; height:48px; min-height:48px; padding:10px 28px 10px 10px; border:1px solid #cbd3da; background:#fff; color:#26333d; font-size:16px!important; line-height:24px; }
.contact-phone-row>.mui-select-trigger { width:112px; min-width:112px; max-width:112px; }
.contact-phone-row>button:not(.mui-select-trigger) { width:42px; min-width:42px; flex:none; }
.work-selected-person>.mui-select-trigger { flex:0 0 112px; width:112px; min-width:112px; max-width:112px; }
.work-selected-person>button:not(.mui-select-trigger) { flex:0 0 38px; width:38px; min-width:38px; }
.store-selected-contact>.mui-select-trigger { width:100%; min-width:112px; max-width:145px; }
.store-selected-contact>button:not(.mui-select-trigger) { width:34px; min-width:34px; }
button.mui-select-trigger,.mui-frame button.mui-select-trigger { white-space:nowrap!important; overflow:hidden; text-overflow:ellipsis; }
.property-form-row>.mui-select-trigger,.request-form-row>.mui-select-trigger { height:52px; min-height:52px; }
.work-form-row>.mui-select-trigger { height:48px; min-height:48px; }
#workDetailDialog .mui-work-participation-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; width:100%; }
#workDetailDialog .mui-work-participation-actions>button { min-width:0; width:100%; height:48px; min-height:48px; padding:8px 3px; white-space:nowrap!important; overflow-wrap:normal; }
@media(max-width:390px) {
 .mui-frame .contact-phone-row { grid-template-columns:minmax(0,1fr) 42px; }
 .mui-frame .contact-phone-row>.mui-select-trigger { grid-column:1; grid-row:1; }
 .mui-frame .contact-phone-row>input { grid-column:1; grid-row:2; }
 .mui-frame .contact-phone-row>button:not(.mui-select-trigger) { grid-column:2; grid-row:2; }
}
@media(max-width:360px) {
 .contact-form .contact-phone-row { grid-template-columns:minmax(0,1fr) 42px; }
 .contact-form .contact-phone-row>.mui-select-trigger { grid-column:1; grid-row:1; }
 .contact-form .contact-phone-row>input { grid-column:1; grid-row:2; }
 .contact-form .contact-phone-row>button:not(.mui-select-trigger) { grid-column:2; grid-row:2; }
}

/* Keep original opportunity form sections as the single layer of inner cards. */
.mui-content>.mui-opportunity-form-section+.mui-opportunity-form-section { margin-top:8px!important; }
