.vs1-bf .vs1-bf-connection { padding-left: 0; padding-right: 0; }
.vs1-bf-head { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0 0 1rem; }
.vs1-bf-head-text { flex: 1 1 16rem; min-width: 0; }
.vs1-bf-status { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.125rem 0.75rem; border-radius: 0.35rem; font-size: 0.875rem; font-weight: 700; line-height: 1.6; }
.vs1-bf-status::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.vs1-bf-status.is-ok { background: rgba(28, 200, 138, .12); color: #13855c; }
.vs1-bf-status.is-waiting { background: rgba(246, 194, 62, .18); color: #8a6408; }
.vs1-bf-status.is-error { background: rgba(231, 74, 59, .1); color: #be2617; }
.vs1-bf .vs1-bf-error { margin: 0 0 1rem; }
.vs1-bf-accounts td:first-child { min-width: 12rem; }
.vs1-bf-accounts .vs1-bf-map { min-width: 14rem; max-width: 24rem; }
.vs1-bf-number { display: block; font-size: 0.875rem; opacity: .8; }
.vs1-bf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 1rem; }
.vs1-bf-actions .btn .fas { margin-right: 0.25rem; }
.vs1-bf-disconnect { color: #e74a3b; }
.vs1-bf-disconnect:hover, .vs1-bf-disconnect:focus { color: #be2617; }
.vs1-bf .btn:focus-visible, .vs1-bf .vs1-bf-map:focus-visible { outline: 2px solid #00a3d3; outline-offset: 2px; }
.vs1-bf .vs1-bf-map:focus { border-color: #00a3d3; box-shadow: 0 0 0 .15rem rgba(0, 163, 211, .35); }

html.dark-mode .vs1-bf-status.is-ok { color: #4fdcaa; }
html.dark-mode .vs1-bf-status.is-waiting { color: #f6c23e; }
html.dark-mode .vs1-bf-status.is-error { color: #f08a80; }

@media (max-width: 768px) {
  .vs1-bf-accounts thead { display: none; }
  .vs1-bf-accounts, .vs1-bf-accounts tbody, .vs1-bf-accounts tr, .vs1-bf-accounts td { display: block; width: 100%; }
  .vs1-bf-accounts tr { padding: 0.5rem 0; border-bottom: 1px solid var(--dm-border, #e3e6f0); }
  .vs1-bf-accounts tbody tr:last-child { border-bottom: 0; }
  .vs1-bf-accounts td { border-bottom: 0; }
  .vs1-bf-accounts td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 0.875rem; font-weight: 700; opacity: .8; }
  .vs1-bf-accounts .vs1-bf-map { max-width: none; }
}
.bfs-listed-row[hidden] { display: none; }

.bfs-hint { display: block; margin-top: 4px; font-size: .85rem; }
.bfs-picked-count { font-weight: 400; color: var(--dm-text-muted, #6e707e); }
.bfs-client-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; border: 1px solid var(--dm-border-2, #d1d3e2); border-radius: 6px; background: var(--dm-surface, #fff); }
.bfs-client + .bfs-client { border-top: 1px solid var(--dm-border, #eaecf4); }
.bfs-client[hidden] { display: none; }
.bfs-client-label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; min-height: 44px; cursor: pointer; font-weight: 400; }
.bfs-client-label:hover { background: var(--dm-surface-2, #f8f9fc); }
.bfs-client-pick { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; }
.bfs-client-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.bfs-client-db { flex: 0 1 auto; min-width: 0; font-size: .8rem; color: var(--dm-text-muted, #6e707e); overflow-wrap: anywhere; text-align: right; }
.bfs-client-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 10px; font-size: .75rem; background: var(--dm-surface-2, #eaecf4); }
.bfs-client-empty { padding: 12px; color: var(--dm-text-muted, #6e707e); }
@media (max-width: 767px) { .bfs-client-label { flex-wrap: wrap; } .bfs-client-db { flex-basis: 100%; text-align: left; padding-left: 28px; } }
.bfs-listed-row .bfs-listed-field { flex: 1 1 100%; }
.bfs-provider .prc-region-fields:has(.bfs-offer-to) .prc-field { flex: 0 1 22rem; }
.bfs-region + .bfs-region { margin-top: 24px; }
.bfs-region-title { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; font-size: 1.1rem; font-weight: 700; color: var(--dm-text, #3a3b45); }
