.bpProfileTabs{position:sticky;top:-20px;z-index:3;display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:5px;margin:-4px 0 16px;padding:6px;background:#edf3f8;border:1px solid #dbe4ee;border-radius:12px}.bpProfileTab{appearance:none;border:0;border-radius:8px;padding:10px 12px;background:transparent;color:#53627a;font:inherit;font-weight:800;cursor:pointer}.bpProfileTab:hover{background:#fff}.bpProfileTab.active{background:#fff;color:#0a5f70;box-shadow:0 1px 4px rgba(15,35,55,.12)}#businessProfileModal .bpBusinessPanelItem[hidden],#businessProfileModal #bpPermitSection[hidden]{display:none!important}.permitSourceHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.permitSourceHead .netSectionTitle{margin-bottom:4px}.permitSourceRow{border:1px solid #dbe4ee;border-radius:12px;padding:13px;margin-top:10px;background:#fafdff}.permitSourceGrid{display:grid;grid-template-columns:1fr 90px;gap:10px}.permitSourceWide,.permitSourceUrl{grid-column:1/-1}.permitSourceActions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px}.bpToggle.compact{margin:0;padding:0;background:transparent;border:0}.permitSourceEmpty{padding:16px;border:1px dashed #cbd5e1;border-radius:10px;color:#667085;text-align:center}.permitSourceNote{margin-top:12px;padding:10px 12px;border-radius:9px;background:#fff8e8;border:1px solid #f0cf77;color:#6b4f00;font-size:12px}.svPermitSummary{margin:14px 0;border:1px solid #cfe6e5;background:#f6fdfd;border-radius:12px;padding:14px}.svPermitSummary h4{margin:0 0 4px;color:#082d63}.svPermitSummary>p{margin:0 0 10px;color:#667085;font-size:12px}.svPermitList{display:grid;gap:8px}.svPermitItem{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:10px 11px;background:#fff;border:1px solid #dbe7ed;border-radius:9px}.svPermitItem b{display:block;color:#152033}.svPermitItem small{display:block;color:#667085;margin-top:3px}.svPermitItem a{align-self:center;white-space:nowrap;color:#087f7c;font-weight:800;text-decoration:none}.svPermitWarning{margin-top:8px;color:#9a6700;font-size:12px}.svPermitEmpty{color:#667085;font-size:13px}@media(max-width:620px){.bpProfileTabs{top:-12px;margin-top:0}.permitSourceHead{flex-direction:column}.permitSourceGrid{grid-template-columns:1fr}.permitSourceWide,.permitSourceUrl{grid-column:auto}.svPermitItem{grid-template-columns:1fr}.svPermitItem a{justify-self:start}}
.permitLoginToggle{grid-column:1/-1;padding:10px!important;border:1px solid #d7e5ec!important;border-radius:9px!important;background:#fff!important;align-items:flex-start!important}.permitLoginToggle span{display:grid;gap:2px}.permitLoginToggle small{font-weight:500;color:#667085}.permitLoginFields{grid-column:1/-1;display:grid;grid-template-columns:1fr;gap:10px;padding:12px;border:1px solid #b9dedc;border-radius:10px;background:#f4fcfc}.permitLoginFields[hidden]{display:none!important}.permitLoginActions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.permitLoginActions .meta2{max-width:420px}

/* The Save Sources button and its result line. Added 2026-10-02: until then the only save control
   for permit sources was the modal's "Save Business Profile" button, which sits inside
   #bpProfilePanel and is hidden on the Permit Systems tab - so this tab had no save at all. */
.permitSourceHeadActions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.permitSourceHeadActions button{white-space:nowrap}
.permitSourceStatus{margin-top:10px;padding:9px 12px;border-radius:10px;font-size:12.5px;font-weight:700}
.permitSourceStatus.ok{background:#e9f7ee;border:1px solid #c3e5cf;color:#1f6b3c}
.permitSourceStatus.bad{background:#fdeaea;border:1px solid #f0c3c3;color:#8c2f2f;font-weight:600}
.permitSourceStatus.working{background:#eef4f8;border:1px solid #d7e0e7;color:#4a5b6d}
@media(max-width:760px){.permitSourceHeadActions{width:100%}.permitSourceHeadActions button{flex:1}}

/* The result, on the button the agent just pressed. The status line alone was not enough: it sits
   at the top of the list and is off screen once you have scrolled to the row you were editing. */
.permitSourceHeadActions button.permitSaveOk{background:#1f6b3c;border-color:#1f6b3c;color:#fff}
.permitSourceHeadActions button.permitSaveBad{background:#8c2f2f;border-color:#8c2f2f;color:#fff}
.permitSourceHeadActions button[disabled]{opacity:.65;cursor:wait}
