/* R2Vida setup layout; scoped to this screen. */
.r2-settings{--navy:#172955;--teal:#087e94;--line:#dce3ed;color:#1c2c43;min-width:0}
.r2-settings .muted{color:#617086}.r2-settings .eyebrow{font-size:.8rem;margin-bottom:8px}
.r2-settings .page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.r2-settings .page-head p{margin:0}
.r2-settings .panel{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:22px;min-width:0}
.r2-settings button{border-radius:9px;padding:11px 17px}.r2-settings button:hover{background:#eaf3f8}.r2-settings button.primary:hover{background:#066579}
.r2-settings .field{gap:7px;min-width:0}.r2-settings .field input,.r2-settings .field select{border-color:#becadb;color:#1c2c43}.r2-settings .field small{font-weight:400;line-height:1.5;color:#657489}
.r2-settings .inline-form{display:flex;gap:10px;margin:16px 0;align-items:end}.r2-settings .inline-form .field{flex:1}.r2-settings .inline-form button{flex-shrink:0}
.r2-settings .catalog-section{padding:20px 0;border-top:1px solid var(--line)}.r2-settings .catalog-section:first-of-type{border-top:0}.r2-settings .catalog-section .inline-form{flex-wrap:wrap}
.r2-settings .split{display:grid;grid-template-columns:1.1fr 1fr;gap:22px}.r2-settings .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.r2-settings .wide{grid-column:1/-1}
.r2-settings .list-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:10px 0;gap:10px}.r2-settings .list-row>span,.r2-settings .contact-info{min-width:0;overflow-wrap:anywhere}.r2-settings .list-row>button{flex-shrink:0}
.r2-settings .contractor-preview{display:flex;align-items:center;flex-wrap:wrap;gap:16px 24px;border-top:1px solid var(--line);padding-top:16px;margin-top:16px}
.r2-settings .contact-info{display:flex;flex-direction:column;gap:4px}.r2-settings .contact-info small{color:#617086}.r2-settings .contact-email{font-size:.9rem}.r2-settings .contact-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}.r2-settings .contact-actions button{padding:8px 11px;min-height:40px}.r2-settings .contact-info .contact-unavailable{color:#973a2c}
.r2-settings .settings-email-note{font-size:.82rem;color:#617086;line-height:1.5;margin:18px 0}.r2-settings .site-contacts-list{margin-top:16px}
@media(max-width:1100px){.r2-settings .split{grid-template-columns:1fr}}
@media(max-width:720px){.r2-settings .page-head{align-items:flex-start;flex-wrap:wrap;gap:14px}.r2-settings .panel{padding:18px}.r2-settings .inline-form{flex-wrap:wrap}.r2-settings .inline-form .field{flex-basis:100%}.r2-settings .form-grid{grid-template-columns:minmax(0,1fr)}.r2-settings .split{gap:0}.r2-settings .wide{grid-column:auto}.r2-settings .contact-row{align-items:flex-start;flex-direction:column}.r2-settings .contact-actions{align-self:flex-end}.r2-settings .list-row>button{padding:9px 11px}.r2-settings .contact-info{width:100%}}

/* Shared by the create form and the edit dialog. */
.location-picker{
 min-width:0;
 min-inline-size:0;
 margin:0 0 1rem;
 padding:.8rem;
 border:1px solid #becadb;
 border-radius:8px;
}
.location-picker legend{padding:0 .35rem;font-size:.93rem;font-weight:600}
.location-picker .location-search{margin:0 0 .55rem;font-size:.85rem}
.location-picker .location-search input{width:100%;min-width:0}
.location-picker .location-options{
 max-height:14rem;
 overflow-y:auto;
 border:1px solid #dce3ed;
 border-radius:6px;
 background:#fff;
}
.location-picker .location-option{
 display:flex;
 align-items:center;
 gap:.65rem;
 min-height:44px;
 margin:0;
 padding:.45rem .65rem;
 cursor:pointer;
 font-size:.9rem;
 font-weight:400;
 line-height:1.35;
 overflow-wrap:anywhere;
}
.location-picker .location-option:not(:last-child){border-bottom:1px solid #edf1f6}
.location-picker .location-option:focus-within{outline:2px solid #087e94;outline-offset:-2px}
.location-picker .location-option:has(:checked){background:#edf6f8}
.location-picker .location-option input[type="checkbox"]{
 appearance:auto;
 flex:none;
 width:18px;
 height:18px;
 padding:0;
 margin:0;
 accent-color:#087e94;
}
.location-picker [hidden]{display:none}
.location-picker .no-location-match{margin:.65rem;color:#617086;font-size:.85rem}
.location-picker [data-location-count]{display:block;margin-top:.5rem;color:#44627a}
.r2-settings .contact-locations{display:flex;flex-wrap:wrap;gap:.3rem;list-style:none;padding:0;margin:.25rem 0}
.r2-settings .contact-locations li{max-width:100%;padding:.18rem .5rem;border-radius:4px;background:#edf3f6;color:#33546a;font-size:.8rem;overflow-wrap:anywhere}
