.bsm-public-wrap {
  max-width: 1060px;
  margin: 30px auto;
  padding: 0 16px;
  color: #172033;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bsm-public-hero {
  padding: 30px;
  border-radius: 28px;
  background: radial-gradient(circle at top right, rgba(79,70,229,.18), transparent 35%), linear-gradient(135deg, #ffffff, #f8fbff);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  border: 1px solid #e6eaf0;
  margin-bottom: 22px;
}

.bsm-public-hero span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  color: #3730a3;
  background: #eef2ff;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.bsm-public-hero h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 900;
  color: #172033;
}

.bsm-public-hero p {
  margin: 0;
  color: #667085;
  max-width: 700px;
}

.bsm-register-form {
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 14px 38px rgba(15,23,42,.06);
}

.bsm-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.bsm-step-dot {
  border: 1px solid #e6eaf0;
  background: #fbfcff;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #667085;
  cursor: pointer;
  text-align: left;
}

.bsm-step-dot strong {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #4f46e5;
}

.bsm-step-dot span {
  font-weight: 800;
}

.bsm-step-dot.active {
  color: #fff;
  background: #4f46e5;
  border-color: #4f46e5;
}

.bsm-step-dot.active strong {
  background: rgba(255,255,255,.2);
  color: #fff;
}

.bsm-form-step { display: none; }
.bsm-form-step.active { display: block; }

.bsm-form-step h3 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 900;
  color: #172033;
}

.bsm-public-packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.bsm-package-card {
  display: block;
  border: 1px solid #e6eaf0;
  border-radius: 20px;
  padding: 18px;
  background: #fbfcff;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
}

.bsm-package-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15,23,42,.08);
}

.bsm-package-card input {
  position: absolute;
  top: 16px;
  right: 16px;
}

.bsm-package-card:has(input:checked) {
  border-color: #4f46e5;
  background: #eef2ff;
}

.bsm-package-title,
.bsm-package-price,
.bsm-package-duration,
.bsm-package-seats,
.bsm-package-card small {
  display: block;
}

.bsm-package-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 10px;
  padding-right: 28px;
}

.bsm-package-price {
  font-size: 24px;
  font-weight: 900;
  color: #4f46e5;
  margin-bottom: 4px;
}

.bsm-package-duration,
.bsm-package-seats,
.bsm-package-card small {
  color: #667085;
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.45;
}

.bsm-public-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bsm-public-grid label {
  display: block;
  font-weight: 800;
  font-size: 13px;
  color: #172033;
}

.bsm-public-grid input,
.bsm-public-grid select {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #e6eaf0;
  background: #fbfcff;
  border-radius: 13px;
  padding: 12px 13px;
  min-height: 46px;
}

.bsm-public-help {
  color: #667085;
  margin: 14px 0 0;
}

.bsm-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.bsm-public-btn {
  border: 0;
  border-radius: 14px;
  background: #4f46e5;
  color: #fff;
  font-weight: 900;
  padding: 13px 18px;
  min-height: 46px;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(79,70,229,.18);
}

.bsm-public-btn.ghost {
  background: #fff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
  box-shadow: none;
}

.bsm-public-btn.final {
  background: #12b76a;
  box-shadow: 0 12px 22px rgba(18,183,106,.18);
}

.bsm-review-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.bsm-review-box div {
  border: 1px solid #e6eaf0;
  border-radius: 18px;
  background: #fbfcff;
  padding: 18px;
}

.bsm-review-box span,
.bsm-review-box strong {
  display: block;
}

.bsm-review-box span {
  color: #667085;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 800;
  margin-bottom: 6px;
}

.bsm-review-box strong {
  font-size: 18px;
  font-weight: 900;
}

.bsm-public-alert {
  max-width: 900px;
  margin: 20px auto;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff1f3;
  color: #b42318;
  font-weight: 800;
  border: 1px solid #fecdd6;
}

@media (max-width: 900px) {
  .bsm-public-packages,
  .bsm-public-grid,
  .bsm-review-box { grid-template-columns: 1fr; }
  .bsm-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .bsm-steps { grid-template-columns: 1fr; }
  .bsm-form-actions { flex-direction: column; }
  .bsm-public-btn { width: 100%; }
}

/* Frontend business portal */
.bsm-portal-shell {
  --bsm-bg: #f6f8fb;
  --bsm-card: #ffffff;
  --bsm-text: #172033;
  --bsm-muted: #667085;
  --bsm-border: #e6eaf0;
  --bsm-primary: #4f46e5;
  --bsm-primary-dark: #3730a3;
  --bsm-soft: #eef2ff;
  --bsm-success: #12b76a;
  --bsm-warning: #f79009;
  --bsm-danger: #f04438;
  max-width: 1280px;
  margin: 30px auto;
  padding: 0 18px 48px;
  color: var(--bsm-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bsm-portal-shell svg { width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }

.bsm-portal-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 34px;
  border-radius: 30px;
  background: radial-gradient(circle at top right, rgba(79,70,229,.20), transparent 38%), linear-gradient(135deg, #fff, #f8fbff);
  box-shadow: 0 22px 55px rgba(15,23,42,.08);
  border: 1px solid #e9eef7;
  margin-bottom: 22px;
}

.bsm-portal-logo {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  box-shadow: 0 18px 38px rgba(79,70,229,.25);
}

.bsm-portal-logo img { width: 100%; height: 100%; object-fit: cover; }
.bsm-portal-logo svg { width: 34px; height: 34px; }

.bsm-portal-hero-copy span {
  display: inline-flex;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--bsm-soft);
  color: var(--bsm-primary-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.bsm-portal-hero-copy h2 {
  margin: 12px 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 950;
  color: var(--bsm-text);
}

.bsm-portal-hero-copy p { margin: 0; color: var(--bsm-muted); max-width: 780px; font-size: 16px; }

.bsm-portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
}

.bsm-portal-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--bsm-border);
  color: var(--bsm-muted);
  text-decoration: none !important;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(15,23,42,.04);
  transition: all .16s ease;
}

.bsm-portal-tab:hover,
.bsm-portal-tab.active {
  background: var(--bsm-primary);
  border-color: var(--bsm-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(79,70,229,.20);
}

.bsm-portal-content { display: block; }
.bsm-portal-grid { display: grid; gap: 20px; margin-bottom: 24px; }
.bsm-portal-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsm-portal-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bsm-portal-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bsm-portal-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }

.bsm-portal-stat,
.bsm-portal-panel {
  background: #fff;
  border: 1px solid var(--bsm-border);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(15,23,42,.055);
}

.bsm-portal-stat {
  min-height: 128px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.bsm-portal-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--bsm-primary);
  background: var(--bsm-soft);
}

.bsm-portal-stat.danger .bsm-portal-stat-icon { color: var(--bsm-danger); background: #fff1f0; }
.bsm-portal-stat span { display: block; color: var(--bsm-muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.bsm-portal-stat strong { display: block; margin-top: 6px; color: var(--bsm-text); font-size: 27px; line-height: 1.05; font-weight: 950; }

.bsm-portal-panel { padding: 24px; overflow: hidden; margin-bottom: 24px; }
.bsm-portal-panel h3 { margin: 0 0 18px; font-size: 20px; line-height: 1.2; color: var(--bsm-text); font-weight: 950; }
.bsm-portal-panel p { color: var(--bsm-muted); }

.bsm-portal-panel-head,
.bsm-portal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.bsm-portal-panel-head { margin-bottom: 16px; }
.bsm-portal-panel-head a { color: var(--bsm-primary); font-weight: 900; text-decoration: none; }
.bsm-portal-section-head h3 { margin: 0 0 6px; font-size: 28px; font-weight: 950; color: var(--bsm-text); }
.bsm-portal-section-head p { margin: 0; color: var(--bsm-muted); }

.bsm-quota {
  min-width: 160px;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--bsm-border);
  box-shadow: 0 10px 26px rgba(15,23,42,.04);
}
.bsm-quota span { color: var(--bsm-muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.bsm-quota strong { color: var(--bsm-text); font-size: 22px; }

.bsm-portal-form label,
.bsm-portal-fieldset label {
  display: block;
  color: var(--bsm-text);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 16px;
}

.bsm-portal-form input,
.bsm-portal-form select,
.bsm-portal-form textarea,
.bsm-portal-fieldset input,
.bsm-portal-fieldset select,
.bsm-portal-fieldset textarea {
  width: 100%;
  display: block;
  margin-top: 8px;
  border: 1px solid var(--bsm-border);
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 48px;
  background: #fbfcff;
  color: var(--bsm-text);
  box-shadow: none;
}

.bsm-portal-form textarea { resize: vertical; }
.bsm-portal-fieldset {
  margin: 22px 0;
  border: 1px solid var(--bsm-border);
  background: #fbfcff;
  border-radius: 20px;
  padding: 20px;
}
.bsm-portal-fieldset h4 { margin: 0 0 4px; font-size: 17px; font-weight: 950; }
.bsm-portal-fieldset p { margin: 0 0 18px; color: var(--bsm-muted); }
.bsm-sub-label { margin-top: 10px; }
.bsm-dynamic-field { padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--bsm-border); }

.bsm-portal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.bsm-front-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid #c7d2fe;
  background: #fff;
  color: var(--bsm-primary);
  font-weight: 950;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none;
}
.bsm-front-btn.primary { background: var(--bsm-primary); border-color: var(--bsm-primary); color: #fff; box-shadow: 0 12px 24px rgba(79,70,229,.18); }
.bsm-front-btn.ghost { background: #fff; color: var(--bsm-primary); }
.bsm-front-btn.small { min-height: 36px; padding: 8px 11px; font-size: 12px; }

.bsm-table-scroll { overflow-x: auto; width: 100%; }
.bsm-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; }
.bsm-table th {
  text-align: left;
  color: var(--bsm-muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--bsm-border);
  padding: 14px 13px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 950;
}
.bsm-table td { border-bottom: 1px solid #edf1f7; padding: 14px 13px; vertical-align: middle; color: var(--bsm-text); }
.bsm-table td strong { display: block; font-weight: 950; }
.bsm-table td small { display: block; margin-top: 4px; color: var(--bsm-muted); font-size: 12px; }
.bsm-empty { text-align: center; color: var(--bsm-muted); padding: 32px !important; }

.bsm-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 950; background: #eef2ff; color: #3730a3; }
.bsm-badge-paid,
.bsm-badge-active,
.bsm-badge-cash { background: #ecfdf3; color: #027a48; }
.bsm-badge-unpaid,
.bsm-badge-pending_cash_payment,
.bsm-badge-pending_checkout { background: #fff7e6; color: #b54708; }
.bsm-badge-overdue,
.bsm-badge-inactive,
.bsm-badge-failed { background: #fff1f0; color: #b42318; }

.bsm-inline-form { display: inline; margin: 0; }
.bsm-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 10px 0 18px; }
.bsm-check-grid label { padding: 12px; border: 1px solid var(--bsm-border); border-radius: 14px; background: #fbfcff; margin: 0; }
.bsm-check-grid input { width: auto; display: inline-block; min-height: auto; margin: 0 6px 0 0; }
.bsm-help { color: var(--bsm-muted); font-weight: 700; }
.bsm-help.danger { color: var(--bsm-danger); }
.bsm-roadmap { display: grid; gap: 12px; }
.bsm-roadmap span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #fbfcff; border: 1px solid var(--bsm-border); font-weight: 900; }
.bsm-front-notice { border-radius: 16px; padding: 14px 16px; margin-bottom: 18px; font-weight: 900; border: 1px solid #bbf7d0; background: #f0fdf4; color: #166534; }
.bsm-front-notice-error { border-color: #fecdd3; background: #fff1f2; color: #9f1239; }
.bsm-front-notice-warning { border-color: #fed7aa; background: #fff7ed; color: #9a3412; }

body.rtl .bsm-portal-shell,
body.rtl .bsm-public-wrap { direction: rtl; text-align: right; }
body.rtl .bsm-table th,
body.rtl .bsm-table td { text-align: right; }
body.rtl .bsm-package-card input { right: auto; left: 16px; }

@media (max-width: 1180px) { .bsm-portal-grid-6 { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 900px) {
  .bsm-portal-hero { align-items: flex-start; flex-direction: column; padding: 24px; }
  .bsm-portal-two, .bsm-portal-grid-2, .bsm-portal-grid-3, .bsm-portal-grid-6 { grid-template-columns: 1fr; }
  .bsm-portal-section-head { align-items: stretch; flex-direction: column; }
  .bsm-portal-actions { flex-direction: column; align-items: stretch; }
  .bsm-front-btn { width: 100%; }
  .bsm-check-grid { grid-template-columns: 1fr; }
}

/* v0.2.6 dashboard refinements */
.bsm-portal-shell {
  max-width: 1360px;
  margin: 24px auto;
}

.bsm-portal-hero {
  min-height: 160px;
  justify-content: flex-start;
}

.bsm-portal-hero-copy h2 {
  margin-top: 0;
}

.bsm-portal-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 10px;
  padding: 4px 0 12px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.bsm-portal-tab {
  flex: 0 0 auto;
  padding: 12px 14px;
  border-radius: 15px;
  position: relative;
  white-space: nowrap;
  font-size: 15px;
}

.bsm-portal-tab span { white-space: nowrap; }
.bsm-portal-tab svg { width: 18px; height: 18px; }
.bsm-portal-tab.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 7px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: .85;
}

.bsm-portal-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.bsm-dashboard-panels .bsm-portal-panel,
.bsm-wide-panel {
  width: 100%;
  margin-bottom: 0;
}

.bsm-portal-grid { gap: 18px; }
.bsm-portal-stat { min-height: 118px; padding: 18px; }
.bsm-portal-stat strong { font-size: 25px; }

.bsm-portal-form label,
.bsm-portal-fieldset label {
  font-size: 14px;
  margin-bottom: 14px;
}

.bsm-portal-form input,
.bsm-portal-form select,
.bsm-portal-form textarea,
.bsm-portal-fieldset input,
.bsm-portal-fieldset select,
.bsm-portal-fieldset textarea {
  min-height: 44px;
  padding: 10px 13px;
  font-size: 15px;
  line-height: 1.4;
}

.bsm-portal-form select,
.bsm-portal-fieldset select {
  appearance: auto;
  font-size: 15px !important;
}

.bsm-phone-input {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: plaintext;
}
body.rtl .bsm-phone-input {
  direction: ltr !important;
  text-align: left !important;
}

.bsm-field-builder-grid { align-items: end; }
.bsm-check-grid-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2px;
  margin-bottom: 18px;
}
.bsm-check-grid-row label {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  text-align: center;
}

.bsm-compact-table th,
.bsm-compact-table td {
  padding: 11px 12px;
  font-size: 14px;
}
.bsm-compact-table td strong { font-size: 15px; }

.bsm-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bsm-row-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 950;
  color: var(--bsm-primary);
  background: var(--bsm-soft);
}
.bsm-row-actions a.danger {
  color: #b42318;
  background: #fff1f0;
}

.bsm-service-type-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--bsm-border);
  color: var(--bsm-muted);
  font-size: 14px;
  font-weight: 800;
  margin: -2px 0 16px;
}
.bsm-service-type-note strong { color: var(--bsm-text); }

body.rtl .bsm-portal-tabs { direction: rtl; }
body.rtl .bsm-portal-tab { flex-direction: row-reverse; }
body.rtl .bsm-row-actions { direction: rtl; }
body.rtl .bsm-check-grid input { margin: 0; }
body.rtl .bsm-portal-hero { flex-direction: row-reverse; text-align: right; }
body.rtl .bsm-portal-hero-copy p { margin-right: 0; margin-left: auto; }

@media (max-width: 900px) {
  .bsm-check-grid-row,
  .bsm-field-builder-grid { grid-template-columns: 1fr; }
  body.rtl .bsm-portal-hero { flex-direction: column; }
}

/* v0.2.8 import/export, discounts, WhatsApp, and form consistency */
.bsm-portal-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bsm-portal-shell input,
.bsm-portal-shell select,
.bsm-portal-shell textarea {
  box-sizing: border-box;
}

.bsm-portal-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.bsm-portal-form select,
.bsm-portal-fieldset input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.bsm-portal-fieldset select {
  min-height: 50px !important;
  height: 50px;
  padding: 12px 14px !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
}

.bsm-portal-form textarea,
.bsm-portal-fieldset textarea {
  min-height: 96px !important;
  padding: 13px 14px !important;
}

.bsm-live-total {
  border: 1px solid var(--bsm-border);
  background: #f8fafc;
  border-radius: 18px;
  padding: 12px 14px;
  min-height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.bsm-live-total span,
.bsm-live-total small {
  color: var(--bsm-muted);
  font-size: 12px;
  font-weight: 800;
}
.bsm-live-total strong {
  color: var(--bsm-text);
  font-size: 18px;
  font-weight: 950;
}
.bsm-discount-box { margin-top: 18px; }

.bsm-import-map-head,
.bsm-import-map-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, .85fr) minmax(260px, 1.55fr);
  gap: 14px;
  align-items: center;
}
.bsm-import-map-head {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--bsm-muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.bsm-import-map-rows {
  display: grid;
  gap: 10px;
}
.bsm-import-map-row {
  padding: 12px 14px;
  border: 1px solid var(--bsm-border);
  border-radius: 16px;
  background: #fff;
}
.bsm-import-map-row strong {
  color: var(--bsm-text);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.bsm-import-sample-value{display:block;min-height:42px;padding:10px 12px;border:1px dashed var(--bsm-border);border-radius:12px;background:#f8fafc;color:var(--bsm-muted);font-family:inherit;font-size:13px;font-weight:850;white-space:normal;overflow-wrap:anywhere;}
.bsm-import-progress {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.bsm-import-progress[hidden] { display: none !important; }
.bsm-import-progress div {
  height: 14px;
  border-radius: 999px;
  background: #eef2ff;
  overflow: hidden;
}
.bsm-import-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--bsm-primary);
  transition: width .18s ease;
}
.bsm-import-progress strong {
  min-width: 52px;
  text-align: end;
  font-weight: 950;
  color: var(--bsm-primary);
}
.bsm-import-progress em {
  grid-column: 1 / -1;
  color: var(--bsm-muted);
  font-style: normal;
  font-weight: 800;
}
.bsm-whatsapp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.bsm-whatsapp-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #12b76a;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 900;
}

@media (max-width: 1000px) {
  .bsm-portal-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .bsm-portal-grid-4,
  .bsm-import-map-head,
  .bsm-import-map-row { grid-template-columns: 1fr; }
}

/* v0.3.0 Platform home, organization switching, WhatsApp bridge */
.bsm-home-shell{max-width:1180px;margin:0 auto;padding:32px 20px 64px;color:#102033}
.bsm-home-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:28px;align-items:center;min-height:560px;padding:46px;border-radius:34px;background:radial-gradient(circle at top left,rgba(79,70,229,.18),transparent 34%),linear-gradient(135deg,#f8fbff,#eef4ff);box-shadow:0 28px 70px rgba(16,32,51,.12);overflow:hidden}
.bsm-kicker{display:inline-flex;align-items:center;gap:8px;margin-bottom:14px;padding:8px 12px;border-radius:999px;background:#fff;color:#4f46e5;font-weight:800;font-size:12px;letter-spacing:.08em;text-transform:uppercase;box-shadow:0 12px 30px rgba(79,70,229,.12)}
.bsm-home-copy h1{font-size:clamp(34px,5vw,68px);line-height:1.02;margin:0 0 18px;font-weight:900;letter-spacing:-.055em;color:#0f172a}
.bsm-home-copy p{font-size:18px;line-height:1.75;color:#475569;max-width:690px;margin:0 0 26px}
.bsm-home-actions{display:flex;flex-wrap:wrap;gap:12px}
.bsm-home-preview{position:relative;border-radius:30px;background:#0f172a;color:#fff;padding:24px;box-shadow:0 34px 80px rgba(15,23,42,.35);min-height:360px;overflow:hidden}
.bsm-home-preview:before{content:"";position:absolute;inset:-20% -10% auto auto;width:260px;height:260px;border-radius:999px;background:rgba(14,165,233,.35);filter:blur(8px)}
.bsm-preview-top{position:relative;display:flex;gap:8px;margin-bottom:34px}.bsm-preview-top span{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.45)}
.bsm-preview-stat{position:relative;margin-bottom:26px}.bsm-preview-stat strong{display:block;font-size:74px;line-height:.9;font-weight:900}.bsm-preview-stat em{font-style:normal;color:#cbd5e1;font-weight:700}
.bsm-preview-bars{position:relative;display:grid;gap:12px;margin:26px 0}.bsm-preview-bars i{display:block;height:13px;border-radius:999px;background:rgba(255,255,255,.84)}
.bsm-preview-card{position:relative;margin-top:34px;padding:18px;border-radius:22px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(10px)}.bsm-preview-card strong{display:block;margin-bottom:6px}.bsm-preview-card p{margin:0;color:#dbeafe}
.bsm-home-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}.bsm-home-features article,.bsm-home-flow{padding:24px;border-radius:26px;background:#fff;box-shadow:0 18px 50px rgba(15,23,42,.08);border:1px solid rgba(148,163,184,.18)}
.bsm-home-features article span{width:48px;height:48px;border-radius:16px;background:#eef2ff;color:#4f46e5;display:grid;place-items:center;margin-bottom:14px}.bsm-home-features svg{width:24px;height:24px;fill:currentColor}.bsm-home-features h3{margin:0 0 8px;font-size:20px}.bsm-home-features p{margin:0;color:#64748b;line-height:1.65}
.bsm-home-flow{margin-top:18px;display:grid;grid-template-columns:1.2fr repeat(4,1fr);gap:14px;align-items:stretch}.bsm-home-flow h2{margin:0;font-size:28px;letter-spacing:-.03em}.bsm-home-flow div{padding:18px;border-radius:18px;background:#f8fafc}.bsm-home-flow span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#0f172a;color:#fff;font-weight:900;margin-bottom:10px}.bsm-home-flow p{margin:0;color:#475569;line-height:1.55}
.bsm-business-switcher{margin:16px 0 0;padding:14px 16px;border-radius:22px;background:#fff;border:1px solid rgba(148,163,184,.25);box-shadow:0 10px 34px rgba(15,23,42,.06)}.bsm-business-switcher>strong{display:block;margin-bottom:10px;color:#334155}.bsm-business-switcher>div{display:flex;gap:10px;overflow:auto;padding-bottom:2px}.bsm-business-pill{min-width:170px;text-decoration:none;padding:10px 12px;border:1px solid rgba(148,163,184,.35);border-radius:16px;background:#f8fafc;color:#334155;display:flex;flex-direction:column;gap:3px}.bsm-business-pill span{font-size:11px;color:#64748b}.bsm-business-pill strong{font-size:13px}.bsm-business-pill.active{background:#0f172a;color:#fff;border-color:#0f172a}.bsm-business-pill.active span{color:#cbd5e1}
.bsm-business-type-choices{margin-top:18px;padding:20px;border-radius:24px;background:#f8fafc;border:1px solid rgba(148,163,184,.18)}.bsm-business-type-choices h4{margin:0 0 8px}.bsm-business-type-choices p{margin:0 0 14px;color:#64748b}.bsm-check-grid label.disabled{opacity:.45;filter:grayscale(1)}.bsm-check-grid label small{display:block;margin-inline-start:26px;color:#64748b;font-size:12px;margin-top:4px}
@media(max-width:900px){.bsm-home-hero,.bsm-home-features,.bsm-home-flow{grid-template-columns:1fr}.bsm-home-hero{padding:28px;min-height:auto}.bsm-home-preview{min-height:300px}.bsm-home-flow h2{margin-bottom:4px}}

/* v0.3.1 platform menu, portal login, registration field alignment, WhatsApp setup */
.bsm-platform-nav {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0 26px;
  color: #0f172a;
}
.bsm-platform-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: inherit;
  min-width: max-content;
}
.bsm-platform-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
}
.bsm-platform-brand span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #0f172a;
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
}
.bsm-platform-brand strong {
  font-size: 20px;
  letter-spacing: -.03em;
}
.bsm-platform-nav nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(255,255,255,.82);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(15,23,42,.06);
}
.bsm-platform-nav nav a,
.bsm-platform-login,
.bsm-platform-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none !important;
  color: #334155;
  font-weight: 850;
  white-space: nowrap;
}
.bsm-platform-nav nav a:hover,
.bsm-platform-login:hover { background: #f1f5f9; color: #0f172a; }
.bsm-platform-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bsm-platform-cta {
  background: #4f46e5;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(79,70,229,.22);
}
.bsm-platform-login { border: 1px solid rgba(148,163,184,.28); background: #fff; color: #0f172a; }

.bsm-home-shell {
  padding-top: 0;
}
.bsm-home-hero {
  min-height: 500px;
}
.bsm-home-copy h1 {
  font-size: clamp(30px, 4.2vw, 54px) !important;
  line-height: 1.06;
  max-width: 660px;
}
.bsm-home-copy p {
  font-size: 17px;
  max-width: 620px;
}

.bsm-public-wrap,
.bsm-public-wrap *,
.bsm-home-shell,
.bsm-home-shell * {
  box-sizing: border-box;
}
.bsm-register-form {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.bsm-public-grid {
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bsm-public-grid > label,
.bsm-review-box > div,
.bsm-package-card {
  min-width: 0;
}
.bsm-public-grid input,
.bsm-public-grid select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 17px;
  box-sizing: border-box;
  font: inherit;
  line-height: 1.2;
}
body.rtl .bsm-public-grid input[dir="ltr"],
body.rtl .bsm-public-grid .bsm-phone-input,
body.rtl .bsm-portal-shell .bsm-phone-input {
  direction: ltr !important;
  text-align: left !important;
}
body.rtl .bsm-public-grid label,
body.rtl .bsm-form-step h3,
body.rtl .bsm-public-help { text-align: right; }
body.rtl .bsm-step-dot { flex-direction: row-reverse; text-align: right; }
body.rtl .bsm-form-actions { justify-content: flex-start; }

.bsm-login-register-wrap {
  max-width: 1180px;
  margin-top: 0;
}
.bsm-login-register-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 26px;
  align-items: stretch;
  padding: 32px;
  border-radius: 32px;
  background: radial-gradient(circle at top left, rgba(79,70,229,.16), transparent 36%), linear-gradient(135deg, #fff, #f8fbff);
  border: 1px solid #e6eaf0;
  box-shadow: 0 24px 70px rgba(15,23,42,.08);
}
.bsm-login-register-copy {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.bsm-login-register-copy span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.bsm-login-register-copy h2 {
  margin: 14px 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -.055em;
  color: #0f172a;
}
.bsm-login-register-copy p {
  margin: 0 0 22px;
  color: #475569;
  line-height: 1.75;
  font-size: 17px;
}
.bsm-login-card {
  padding: 24px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid #e6eaf0;
  box-shadow: 0 18px 50px rgba(15,23,42,.08);
}
.bsm-login-card h3 { margin: 0 0 18px; font-size: 24px; font-weight: 950; }
.bsm-login-card label { display: block; font-weight: 900; color: #172033; margin-bottom: 8px; }
.bsm-login-card input[type="text"],
.bsm-login-card input[type="password"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid #e6eaf0;
  background: #fbfcff;
  border-radius: 14px;
  padding: 0 15px;
  box-sizing: border-box;
}
.bsm-login-card .login-remember label { display: inline-flex; align-items: center; gap: 8px; }
.bsm-login-card #bsm_wp_submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #4f46e5;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.bsm-whatsapp-status-grid { margin-bottom: 20px; }
.bsm-whatsapp-status-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--bsm-border, #e6eaf0);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15,23,42,.055);
}
.bsm-whatsapp-status-card span {
  display: block;
  color: var(--bsm-muted, #667085);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.bsm-whatsapp-status-card strong {
  display: block;
  color: var(--bsm-text, #172033);
  font-size: 20px;
  font-weight: 950;
}
.bsm-whatsapp-status-card small {
  display: block;
  margin-top: 7px;
  color: var(--bsm-muted, #667085);
  font-weight: 750;
  line-height: 1.45;
}
.bsm-whatsapp-easy {
  background: linear-gradient(135deg, #ffffff, #f8fbff);
}
.bsm-whatsapp-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0 !important;
}

@media (max-width: 960px) {
  .bsm-platform-nav { align-items: stretch; flex-direction: column; }
  .bsm-platform-nav nav { justify-content: flex-start; overflow-x: auto; border-radius: 18px; }
  .bsm-platform-nav-actions { width: 100%; }
  .bsm-platform-login,.bsm-platform-cta { flex: 1; }
  .bsm-login-register-panel { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 900px) {
  .bsm-public-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .bsm-platform-brand strong { font-size: 18px; }
  .bsm-login-register-copy { padding: 8px; }
  .bsm-home-copy h1 { font-size: 32px !important; }
}

/* v0.3.2 WhatsApp QR bridge activation */
.bsm-whatsapp-setup-alert,
.bsm-whatsapp-qr-placeholder {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  border-radius: 20px;
  padding: 16px 18px;
  margin: 0 0 18px;
  box-shadow: 0 12px 30px rgba(154,52,18,.05);
}
.bsm-whatsapp-setup-alert strong,
.bsm-whatsapp-qr-placeholder strong {
  display: block;
  color: #7c2d12;
  font-size: 16px;
  font-weight: 950;
  margin-bottom: 6px;
}
.bsm-whatsapp-setup-alert p,
.bsm-whatsapp-qr-placeholder p { margin: 0; line-height: 1.6; }
.bsm-whatsapp-bridge-box {
  background: linear-gradient(135deg,#ffffff,#f7fbff);
}
.bsm-whatsapp-command {
  margin-top: 14px;
  border: 1px solid var(--bsm-border,#e6eaf0);
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  color: #e5e7eb;
}
.bsm-whatsapp-command span {
  display: block;
  padding: 10px 14px;
  background: rgba(255,255,255,.06);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.bsm-whatsapp-command code {
  display: block;
  padding: 14px;
  color: #f8fafc;
  font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: normal;
}
.bsm-whatsapp-qr-panel {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 16px;
  border: 1px solid var(--bsm-border,#e6eaf0);
  border-radius: 22px;
  background: #fff;
  padding: 16px;
}
.bsm-whatsapp-qr-panel h4 { margin-top: 0; }
.bsm-whatsapp-qr-panel iframe {
  width: 100%;
  min-height: 500px;
  border: 1px solid var(--bsm-border,#e6eaf0);
  border-radius: 18px;
  background: #f8fafc;
}
@media (max-width: 900px) {
  .bsm-whatsapp-qr-panel { grid-template-columns: 1fr; }
  .bsm-whatsapp-qr-panel iframe { min-height: 520px; }
}

/* v0.3.4 Collector desk */
.bsm-collector-filter{display:grid;grid-template-columns:minmax(260px,1.5fr) minmax(180px,.6fr) auto auto;gap:12px;align-items:end;margin:16px 0 18px}
.bsm-collector-filter label{display:flex;flex-direction:column;gap:7px;color:var(--bsm-muted);font-weight:900;font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.bsm-collector-filter input{min-height:46px;border:1px solid var(--bsm-border);border-radius:14px;padding:11px 13px;background:#fff;color:var(--bsm-text);font-size:14px;text-transform:none;letter-spacing:0;font-weight:700}
.bsm-collector-table td{vertical-align:top}.bsm-collector-table td small{display:block;margin-top:4px;color:var(--bsm-muted);font-size:12px;line-height:1.45}.bsm-collector-table td strong{display:block;color:var(--bsm-text)}
.bsm-collector-table .bsm-collector-building{color:var(--bsm-text);font-size:14px;font-weight:700;margin-top:7px}
.bsm-collect-form{margin:0}.bsm-muted-text{color:var(--bsm-muted);font-weight:800;font-size:12px}.bsm-collector-stats{margin-bottom:18px}
@media (max-width:800px){.bsm-collector-filter{grid-template-columns:1fr}.bsm-collector-filter .bsm-front-btn{width:100%;justify-content:center}.bsm-collector-table td{min-width:160px}.bsm-collector-table td:first-child{min-width:240px}}


/* v0.3.5 dashboard shortcuts + logout */
.bsm-portal-stat.is-clickable{display:flex;color:inherit;text-decoration:none;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;background:linear-gradient(135deg,#fff,#fbfdff)}
.bsm-portal-stat.is-clickable:hover{transform:translateY(-3px);box-shadow:0 22px 45px rgba(15,23,42,.10);border-color:#c7d2fe;text-decoration:none}
.bsm-portal-stat.is-clickable:focus{outline:3px solid rgba(79,70,229,.22);outline-offset:2px}
.bsm-portal-hero{position:relative;gap:18px}.bsm-portal-hero-actions{display:flex;align-items:flex-start;justify-content:flex-end;margin-inline-start:auto}.bsm-logout-btn{white-space:nowrap;background:#fff!important}
@media (max-width:760px){.bsm-portal-hero{display:grid!important;grid-template-columns:1fr;text-align:center;padding:22px 18px!important}.bsm-portal-hero-actions{justify-content:center;margin:10px 0 0}.bsm-logout-btn{width:100%;justify-content:center}.bsm-portal-logo{margin:auto}.bsm-portal-hero-copy h2{font-size:32px!important;line-height:1.05!important}}

/* v0.3.6 Arabic-first collector/admin table usability */
.bsm-portal-stat span,.bsm-table th,.bsm-collector-filter label,.bsm-table-filters label span,.bsm-quota span{ text-transform:none!important; letter-spacing:0!important; }
.bsm-table-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:14px 0 18px;padding:14px;border:1px solid var(--bsm-border);border-radius:20px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.04)}
.bsm-table-filters label{display:flex;flex-direction:column;gap:7px;min-width:170px;flex:1;color:var(--bsm-muted);font-weight:900;font-size:13px}
.bsm-table-filters input,.bsm-table-filters select{min-height:46px;border:1px solid var(--bsm-border);border-radius:14px;padding:10px 13px;background:#fff;color:var(--bsm-text);font-size:14px;font-weight:800;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important}
.bsm-table-filters .bsm-front-btn{min-height:46px}.bsm-active-filters{display:flex;flex-wrap:wrap;gap:8px;width:100%}.bsm-filter-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:#eef2ff;color:#4f46e5;font-weight:900;font-size:12px;text-decoration:none}.bsm-filter-chip span{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:999px;background:#4f46e5;color:#fff;line-height:1}
.bsm-mobile-collect{display:none;margin-top:12px}.bsm-desktop-action{white-space:nowrap}.bsm-subscriber-cell strong{font-size:16px}.bsm-subscriber-cell small[dir="ltr"]{direction:ltr;text-align:inherit}.bsm-collector-table .bsm-front-btn.small{width:100%;justify-content:center}
@media (max-width: 760px){
  .bsm-portal-tabs{display:flex;overflow-x:auto;gap:10px;padding:4px 0 10px}.bsm-portal-tab{white-space:nowrap;min-width:max-content}
  .bsm-table-filters{display:grid;grid-template-columns:1fr;gap:10px;padding:12px}.bsm-table-filters label{min-width:0}.bsm-table-filters .bsm-front-btn{width:100%;justify-content:center}
  .bsm-collector-table{min-width:0!important;border-spacing:0;width:100%}.bsm-collector-table thead{display:none}.bsm-collector-table tbody,.bsm-collector-table tr,.bsm-collector-table td{display:block;width:100%}.bsm-collector-table tr{padding:14px;border-bottom:1px solid #edf1f7}.bsm-collector-table td{border-bottom:0!important;padding:5px 0!important;min-width:0!important}.bsm-collector-table td:before{content:attr(data-label);display:block;margin-bottom:3px;color:var(--bsm-muted);font-size:11px;font-weight:900}.bsm-collector-table .bsm-subscriber-cell:before{display:none}.bsm-collector-table .bsm-subscriber-cell strong{font-size:22px;line-height:1.15}.bsm-collector-table .bsm-subscription-cell,.bsm-collector-table .bsm-period-cell,.bsm-collector-table .bsm-amount-cell{display:inline-block;width:auto;margin-inline-end:18px;vertical-align:top}.bsm-collector-table .bsm-status-cell{margin-top:8px}.bsm-mobile-collect{display:block}.bsm-desktop-action{display:none!important}
  .bsm-table:not(.bsm-collector-table){min-width:0!important}.bsm-table:not(.bsm-collector-table) thead{display:none}.bsm-table:not(.bsm-collector-table) tbody,.bsm-table:not(.bsm-collector-table) tr,.bsm-table:not(.bsm-collector-table) td{display:block;width:100%}.bsm-table:not(.bsm-collector-table) tr{padding:14px;border-bottom:1px solid #edf1f7}.bsm-table:not(.bsm-collector-table) td{border-bottom:0!important;padding:6px 0!important}.bsm-table:not(.bsm-collector-table) td:before{content:attr(data-label);display:block;margin-bottom:3px;color:var(--bsm-muted);font-size:11px;font-weight:900}.bsm-table-scroll{overflow:visible!important}
}
.bsm-client-table-filter{margin:12px 0}.bsm-client-table-filter input{width:100%;min-height:44px;border:1px solid var(--bsm-border);border-radius:14px;padding:10px 13px;background:#fff;color:var(--bsm-text);font-weight:800;box-shadow:none!important}

/* v0.5.10 subscriber header filters + custom sticky table controls */
.bsm-header-filter-form{margin:0}.bsm-subscribers-table th{vertical-align:top;min-width:132px}.bsm-subscribers-table th:first-child{min-width:190px}
.bsm-column-title{display:block;margin-bottom:7px;white-space:nowrap}.bsm-column-filter{display:block;width:100%;min-width:118px;min-height:36px;padding:6px 28px 6px 8px;border:1px solid #dbe3f0;border-radius:10px;background:#fff;color:var(--bsm-text);font-size:12px;font-weight:800;text-transform:none;letter-spacing:0;box-shadow:none}
.bsm-sticky-table-tools{position:sticky;top:8px;z-index:80;width:100%;margin:0 0 8px;direction:ltr}.bsm-sticky-table-tools[hidden]{display:none!important}
.bsm-portal-panel.bsm-has-sticky-table{overflow:visible}
.bsm-custom-scrollbar{height:24px;padding:5px 7px;border:1px solid #cfd8e8;border-radius:12px;background:#f8fafc;box-shadow:0 6px 18px rgba(15,23,42,.14);cursor:pointer;outline:none;touch-action:none;user-select:none}
.bsm-custom-scrollbar:focus-visible{box-shadow:0 0 0 3px rgba(79,70,229,.22),0 6px 18px rgba(15,23,42,.14)}.bsm-custom-scrollbar-track{position:relative;width:100%;height:12px;border-radius:999px;background:#e5e9f5;overflow:hidden}.bsm-custom-scrollbar-thumb{position:absolute;inset:0 auto 0 0;min-width:52px;border-radius:999px;background:linear-gradient(90deg,#6366f1,#818cf8);box-shadow:0 1px 4px rgba(67,56,202,.35);cursor:grab;will-change:transform}.bsm-custom-scrollbar-thumb:hover{background:linear-gradient(90deg,#4f46e5,#6366f1)}.bsm-custom-scrollbar-thumb.is-dragging{cursor:grabbing;background:#4f46e5}
.bsm-sticky-header-viewport{display:none;width:100%;overflow:hidden;border:1px solid var(--bsm-border);border-top:0;border-radius:0 0 12px 12px;background:#f8fafc;box-shadow:0 8px 18px rgba(15,23,42,.12);direction:ltr}.bsm-sticky-header-viewport.is-visible{display:block}.bsm-sticky-header-table{width:max-content!important;min-width:100%;margin:0;border-collapse:separate;border-spacing:0;table-layout:fixed;direction:rtl;will-change:transform}.bsm-sticky-header-table tbody{display:none}.bsm-sticky-header-table th{box-sizing:border-box}.bsm-sticky-table-tools.has-sticky-header .bsm-custom-scrollbar{border-radius:12px 12px 0 0}
.bsm-table-scroll.bsm-custom-scroll-active{direction:ltr;scrollbar-width:none;-ms-overflow-style:none}.bsm-table-scroll.bsm-custom-scroll-active::-webkit-scrollbar{display:none}.bsm-table-scroll.bsm-custom-scroll-active>.bsm-table{direction:rtl}
.bsm-ajax-filter-actions{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:42px;margin:2px 0 8px;direction:rtl}.bsm-clear-column-filters{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 14px;border:1px solid #c7d2fe;border-radius:12px;background:#fff;color:#4f46e5;font:inherit;font-size:13px;font-weight:950;cursor:pointer;box-shadow:0 5px 14px rgba(79,70,229,.08)}.bsm-clear-column-filters:hover{background:#eef2ff}.bsm-clear-column-filters[hidden]{display:none!important}.bsm-clear-column-filters span{display:inline-flex;align-items:center;justify-content:center;width:19px;height:19px;border-radius:999px;background:#4f46e5;color:#fff;font-size:16px;line-height:1}.bsm-filter-loading{display:inline-flex;align-items:center;gap:8px;color:var(--bsm-muted);font-size:12px;font-weight:900}.bsm-filter-loading[hidden]{display:none!important}.bsm-filter-loading span{width:17px;height:17px;border:2px solid #c7d2fe;border-top-color:#4f46e5;border-radius:999px;animation:bsmFilterSpin .7s linear infinite}.bsm-filter-loading em{font-style:normal}.bsm-header-filter-form.is-filtering tbody{opacity:.48;transition:opacity .15s ease}.bsm-header-filter-form.has-filter-error .bsm-ajax-filter-actions:after{content:'تعذر تحميل النتائج. حاول مرة أخرى.';color:#b42318;font-size:12px;font-weight:900}@keyframes bsmFilterSpin{to{transform:rotate(360deg)}}
.bsm-subscriber-bulk-bar{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:4px 0 10px;padding:10px 12px;border:1px solid #e0e7ff;border-radius:14px;background:#f8faff;direction:rtl}.bsm-subscriber-bulk-bar select{width:auto;min-width:170px;min-height:40px;padding:7px 12px;border:1px solid #cfd8e8;border-radius:11px;background:#fff;color:var(--bsm-text);font-size:13px;font-weight:850}.bsm-subscriber-bulk-bar select[hidden]{display:none!important}.bsm-bulk-select-all-label{display:inline-flex;align-items:center;gap:7px;color:var(--bsm-text);font-size:13px;font-weight:900;white-space:nowrap}.bsm-subscriber-bulk-bar input[type=checkbox],.bsm-select-column input[type=checkbox]{width:19px!important;height:19px!important;min-height:0!important;margin:0!important;accent-color:#4f46e5;cursor:pointer}.bsm-apply-bulk{min-height:40px;padding:8px 17px;border:0;border-radius:11px;background:#4f46e5;color:#fff;font:inherit;font-size:13px;font-weight:950;cursor:pointer;box-shadow:0 7px 16px rgba(79,70,229,.2)}.bsm-apply-bulk:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.bsm-bulk-selection-count{padding:6px 9px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:12px;font-weight:900}.bsm-bulk-status{color:var(--bsm-muted);font-size:12px;font-weight:850}.bsm-select-column{width:50px!important;min-width:50px!important;max-width:50px!important;text-align:center!important}
@media (max-width:760px){.bsm-sticky-table-tools{display:none!important}.bsm-column-filter{display:none}.bsm-table-scroll.bsm-custom-scroll-active{direction:rtl;scrollbar-width:auto}.bsm-table-scroll.bsm-custom-scroll-active>.bsm-table{direction:rtl}}

/* v0.3.8 organization route + cleaner portal layout */
body:has(.bsm-platform-page) .entry-title,
body:has(.bsm-platform-page) .page-title,
body:has(.bsm-platform-page) .wp-block-post-title,
body:has(.bsm-platform-page) h1.entry-title,
body:has(.bsm-platform-page) .entry-header,
body:has(.bsm-platform-page) .page-header { display:none!important; }
body:has(.bsm-platform-page) .site-main,
body:has(.bsm-platform-page) .content-area,
body:has(.bsm-platform-page) .entry-content,
body:has(.bsm-platform-page) main { padding-top:0!important; margin-top:0!important; }
.bsm-platform-page.bsm-portal-shell{margin-top:0!important;padding-top:16px!important;}
.bsm-portal-shell:before,.bsm-portal-shell:after{content:none!important;display:none!important;}
.bsm-sub-section-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;}
.bsm-portal-actions.bsm-sub-section-actions .bsm-front-btn{white-space:nowrap;}
.bsm-business-switcher{margin-top:-6px!important;margin-bottom:8px!important;}
.bsm-portal-tabs{margin-bottom:22px!important;}
.bsm-portal-hero{margin-bottom:18px!important;}
.bsm-portal-panel-head .bsm-muted-text{display:inline-flex;align-items:center;color:var(--bsm-muted);font-weight:850;}

@media (max-width: 760px){
  .bsm-platform-page.bsm-portal-shell{padding-top:8px!important;}
  .bsm-portal-hero{padding:18px 14px!important;margin-bottom:12px!important;}
  .bsm-business-switcher{margin:0 0 8px!important;padding:14px!important;}
  .bsm-sub-section-actions{width:100%;display:grid;grid-template-columns:1fr;}
  .bsm-sub-section-actions .bsm-front-btn{width:100%;justify-content:center;}
  .bsm-mobile-collapse-enabled .bsm-table-scroll{overflow:visible!important;}
  .bsm-table tbody tr.bsm-mobile-collapsible{position:relative;border:1px solid #edf1f7!important;border-radius:18px;margin-bottom:12px;background:#fff;box-shadow:0 10px 22px rgba(15,23,42,.04);overflow:hidden;}
  .bsm-table tbody tr.bsm-mobile-collapsible:not(.is-open) td:not(:first-child){display:none!important;}
  .bsm-table tbody tr.bsm-mobile-collapsible td:first-child{padding:14px!important;cursor:pointer;}
  .bsm-table tbody tr.bsm-mobile-collapsible td:first-child:before{display:none!important;}
  .bsm-table tbody tr.bsm-mobile-collapsible td:first-child strong{font-size:20px;line-height:1.15;}
  .bsm-mobile-row-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;}
  .bsm-mobile-status-pill{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;background:#eef2ff;color:#4f46e5;font-weight:950;font-size:12px;}
  .bsm-mobile-toggle{display:inline-flex;align-items:center;justify-content:center;border:1px solid #c7d2fe;background:#fff;color:#4f46e5;border-radius:999px;padding:6px 10px;font-weight:950;font-size:12px;}
  .bsm-table tbody tr.bsm-mobile-collapsible.is-open .bsm-mobile-toggle{background:#4f46e5;color:#fff;}
}

/* v0.4.0 collector portal restructure */
.bsm-collector-shell .bsm-portal-section-head.bsm-compact-head{margin:6px 0 12px;}
.bsm-collector-shell .bsm-portal-section-head.bsm-compact-head h3{margin:0;font-size:28px;}
.bsm-collector-shell .bsm-compact-panel{padding:18px;}
.bsm-collector-shell .bsm-table-filters.bsm-compact-filters{margin:8px 0 14px;}
.bsm-collector-shell .bsm-table-filters.bsm-compact-filters label{min-width:150px;}
.bsm-collector-dashboard .bsm-portal-stat{min-height:128px;}
.bsm-subscriber-collect-table .bsm-subscriber-cell strong{font-size:18px;}
.bsm-subscriber-collect-table .bsm-status-cell small{margin-top:6px;}
.bsm-badge-no_bill{background:#f1f5f9;color:#64748b;}
@media (max-width:760px){
  .bsm-collector-shell{padding-top:0!important;}
  .bsm-collector-shell .bsm-portal-hero{padding:18px 16px!important;margin-bottom:14px;display:block;text-align:center;}
  .bsm-collector-shell .bsm-portal-logo{width:86px;height:86px;margin:0 auto 12px;}
  .bsm-collector-shell .bsm-portal-hero-copy h2{font-size:32px!important;line-height:1.05;margin:0 0 8px;}
  .bsm-collector-shell .bsm-portal-hero-copy p{display:none;}
  .bsm-collector-shell .bsm-portal-hero-actions{margin-top:12px;}
  .bsm-collector-shell .bsm-portal-tabs{display:grid;grid-template-columns:1fr;gap:10px;margin:12px 0 16px;}
  .bsm-collector-shell .bsm-portal-tabs a{width:100%;justify-content:center;min-height:54px;font-size:18px;}
  .bsm-collector-shell .bsm-portal-grid-6,.bsm-collector-shell .bsm-portal-grid-4{grid-template-columns:1fr 1fr!important;gap:12px;}
  .bsm-collector-shell .bsm-portal-stat{min-height:130px;padding:18px 16px;}
  .bsm-collector-shell .bsm-portal-stat strong{font-size:26px;}
  .bsm-collector-shell .bsm-table-filters.bsm-compact-filters{padding:12px;border-radius:22px;gap:9px;}
  .bsm-collector-shell .bsm-table-filters.bsm-compact-filters label span{font-size:13px;}
  .bsm-collector-shell .bsm-table-filters.bsm-compact-filters input,.bsm-collector-shell .bsm-table-filters.bsm-compact-filters select{min-height:48px;border-radius:16px;}
  .bsm-collector-shell .bsm-active-filters{margin-top:4px;}
  .bsm-collector-shell .bsm-compact-panel{padding:12px;border-radius:24px;}
  .bsm-subscriber-collect-table tbody tr{border:1px solid #e5e7eb!important;border-radius:22px!important;margin-bottom:12px!important;padding:16px!important;box-shadow:0 10px 22px rgba(15,23,42,.05);}
  .bsm-subscriber-collect-table .bsm-subscriber-cell strong{font-size:24px!important;}
  .bsm-subscriber-collect-table .bsm-mobile-collect .bsm-front-btn{margin-top:12px;min-height:48px;font-size:16px;}
  .bsm-subscriber-collect-table td[data-label="العنوان"],.bsm-subscriber-collect-table td[data-label="Address"]{font-size:13px;line-height:1.5;color:var(--bsm-muted);}
}


/* v0.4.2 subscriber table cleanup */
.bsm-ltr-value{direction:ltr;unicode-bidi:isolate;display:inline-block;text-align:left;}
.bsm-phone-value{white-space:nowrap;}
body.rtl .bsm-table td .bsm-ltr-value, body.rtl .bsm-table th .bsm-ltr-value{text-align:left;}
.bsm-subscribers-table th, .bsm-subscribers-table td{white-space:normal;}
.bsm-subscribers-table th:nth-child(2), .bsm-subscribers-table td:nth-child(2){min-width:132px;}
.bsm-subscribers-table th:last-child, .bsm-subscribers-table td:last-child{min-width:86px;}
@media (min-width:761px){.bsm-subscribers-table{min-width:980px}.bsm-subscribers-table th,.bsm-subscribers-table td{padding-inline:10px}}

/* v0.4.7 mobile header, safe filters, overlay account panels, and snap tabs */
.bsm-mobile-header,
.bsm-mobile-overlay { display: none; }

@media (max-width: 760px) {
  body.bsm-overlay-open { overflow: hidden; }

  .bsm-platform-page.bsm-portal-shell {
    width: 100% !important;
    max-width: none !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: 34px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .bsm-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 94px;
    margin: 0 -10px 16px !important;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid #eef1f6;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .10);
    position: sticky;
    top: 0;
    z-index: 80;
  }

  .bsm-mobile-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    max-width: 48%;
    text-decoration: none !important;
  }

  .bsm-mobile-logo img {
    display: block;
    width: auto;
    max-width: 170px;
    max-height: 76px;
    object-fit: contain;
  }

  .bsm-mobile-logo-fallback {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef2ff, #fff);
    color: var(--bsm-primary);
    border: 1px solid #edf0ff;
  }

  .bsm-mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
  }

  .bsm-mobile-icon-btn {
    width: 70px;
    height: 70px;
    border: 0;
    border-radius: 14px;
    display: grid;
    place-items: center;
    position: relative;
    color: #9ca3af;
    background: linear-gradient(135deg, rgba(79,70,229,.14), rgba(255,255,255,.96));
    box-shadow: 0 10px 26px rgba(15,23,42,.08);
    cursor: pointer;
    padding: 0;
  }

  .bsm-mobile-icon-btn svg {
    width: 44px !important;
    height: 44px !important;
    fill: currentColor;
  }

  .bsm-mobile-badge {
    position: absolute;
    top: -7px;
    inset-inline-end: -7px;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef233c;
    color: #fff;
    border: 3px solid #fff;
    font-size: 14px;
    line-height: 1;
    font-weight: 950;
  }

  .bsm-portal-hero {
    display: none !important;
  }

  .bsm-business-switcher {
    margin: 0 0 10px !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }

  .bsm-business-pills {
    gap: 8px !important;
  }

  .bsm-business-pill {
    min-width: 190px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
  }

  .bsm-portal-tabs {
    --bsm-tab-width: min(76vw, 270px);
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    padding: 4px 10px 12px !important;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 10px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .bsm-portal-tab {
    flex: 0 0 var(--bsm-tab-width) !important;
    width: var(--bsm-tab-width) !important;
    max-width: var(--bsm-tab-width) !important;
    min-width: var(--bsm-tab-width) !important;
    justify-content: center !important;
    min-height: 64px !important;
    padding: 14px 18px !important;
    font-size: 18px !important;
    border-radius: 18px !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  .bsm-portal-tab span {
    max-width: calc(var(--bsm-tab-width) - 70px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
  }

  .bsm-portal-tab.active::after {
    left: 22px !important;
    right: 22px !important;
    bottom: 8px !important;
  }

  .bsm-portal-content,
  .bsm-portal-panel,
  .bsm-portal-stat,
  .bsm-table-filters,
  .bsm-portal-section-head {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .bsm-portal-panel {
    padding: 16px 14px !important;
    border-radius: 20px !important;
    margin-bottom: 16px !important;
  }

  .bsm-portal-section-head {
    margin-bottom: 14px !important;
  }

  .bsm-portal-section-head h3 {
    font-size: 28px !important;
    line-height: 1.12 !important;
  }

  .bsm-portal-section-head p {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .bsm-portal-grid,
  .bsm-portal-grid-4,
  .bsm-portal-grid-6,
  .bsm-dashboard-panels {
    gap: 12px !important;
    margin-bottom: 14px !important;
  }

  .bsm-portal-stat {
    padding: 16px 14px !important;
    border-radius: 18px !important;
  }

  .bsm-front-btn {
    min-height: 50px;
  }

  .bsm-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    background: rgba(15, 23, 42, .28);
    transition: opacity .18s ease;
  }

  .bsm-mobile-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .bsm-mobile-overlay-panel {
    width: 100%;
    min-height: 100%;
    background: #fff;
    color: var(--bsm-text);
    overflow-y: auto;
    transform: translateY(16px);
    transition: transform .18s ease;
    padding: max(18px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
  }

  .bsm-mobile-overlay.is-open .bsm-mobile-overlay-panel {
    transform: translateY(0);
  }

  .bsm-mobile-overlay-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 4px 0 18px;
    border-bottom: 1px solid #edf1f7;
    margin-bottom: 18px;
  }

  .bsm-mobile-overlay-head span,
  .bsm-mobile-overlay-head small {
    display: block;
    color: var(--bsm-muted);
    font-size: 13px;
    font-weight: 850;
  }

  .bsm-mobile-overlay-head h3 {
    margin: 4px 0 0;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 950;
    color: var(--bsm-text);
  }

  .bsm-mobile-overlay-close {
    width: 46px;
    height: 46px;
    border: 1px solid var(--bsm-border);
    border-radius: 14px;
    background: #fff;
    color: var(--bsm-muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
  }

  .bsm-mobile-overlay-close svg {
    width: 22px !important;
    height: 22px !important;
  }

  .bsm-mobile-overlay-content {
    display: grid;
    gap: 12px;
  }

  .bsm-overlay-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border-radius: 18px;
    border: 1px solid #e7eaf2;
    background: linear-gradient(135deg, #fff, #f8fbff);
    color: var(--bsm-text);
    text-decoration: none !important;
  }

  .bsm-overlay-option > span {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--bsm-primary);
    background: #eef2ff;
    flex: 0 0 auto;
  }

  .bsm-overlay-option.is-danger > span {
    color: var(--bsm-danger);
    background: #fff1f0;
  }

  .bsm-overlay-option strong,
  .bsm-overlay-option small {
    display: block;
  }

  .bsm-overlay-option strong {
    color: var(--bsm-text);
    font-size: 16px;
    font-weight: 950;
    line-height: 1.3;
  }

  .bsm-overlay-option small {
    margin-top: 4px;
    color: var(--bsm-muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
  }

  .bsm-overlay-empty {
    min-height: 190px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 12px;
    color: var(--bsm-muted);
    border: 1px dashed #d9deea;
    border-radius: 22px;
    background: #fbfcff;
    padding: 22px;
  }

  .bsm-overlay-empty svg {
    width: 54px !important;
    height: 54px !important;
    color: #9ca3af;
  }

  .bsm-overlay-empty strong {
    color: var(--bsm-text);
    font-size: 18px;
    font-weight: 950;
  }

  .bsm-overlay-main-btn {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  button.bsm-overlay-option {
    width: 100%;
    text-align: inherit;
    cursor: pointer;
    font: inherit;
  }

  .bsm-profile-overlay-content {
    gap: 14px;
  }

  .bsm-profile-tabs {
    display: grid;
    gap: 10px;
  }

  .bsm-profile-tabs .bsm-overlay-option {
    opacity: .76;
  }

  .bsm-profile-tabs .bsm-overlay-option.is-active {
    opacity: 1;
    border-color: rgba(79, 70, 229, .36);
    box-shadow: 0 12px 28px rgba(79, 70, 229, .10);
  }

  .bsm-profile-section {
    display: none;
    border: 1px solid #e7eaf2;
    border-radius: 22px;
    padding: 14px;
    background: #fff;
  }

  .bsm-profile-section.is-active {
    display: block;
  }

  .bsm-profile-form {
    display: grid;
    gap: 12px;
  }

  .bsm-profile-form label {
    display: grid;
    gap: 7px;
    color: var(--bsm-muted);
    font-size: 13px;
    font-weight: 900;
  }

  .bsm-profile-form input,
  .bsm-profile-form textarea {
    width: 100%;
    border: 1px solid var(--bsm-border);
    border-radius: 16px;
    background: #fff;
    color: var(--bsm-text);
    min-height: 48px;
    padding: 11px 13px;
    font-size: 15px;
    font-weight: 800;
    box-shadow: none !important;
  }

  .bsm-profile-form textarea {
    resize: vertical;
    min-height: 92px;
  }

  .bsm-profile-security-card {
    display: grid;
    gap: 10px;
  }

  .bsm-profile-security-card > strong {
    color: var(--bsm-text);
    font-size: 20px;
    font-weight: 950;
  }

  .bsm-profile-security-card p,
  .bsm-profile-note {
    margin: 0;
    color: var(--bsm-muted);
    font-size: 14px;
    line-height: 1.55;
    font-weight: 750;
  }

  .bsm-profile-section .bsm-front-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
  }

  body.rtl .bsm-mobile-header {
    direction: ltr;
  }

  body.rtl .bsm-mobile-logo,
  body.rtl .bsm-mobile-header-actions {
    direction: rtl;
  }

  body.rtl .bsm-mobile-overlay,
  body.rtl .bsm-mobile-overlay * {
    direction: rtl;
  }
}

@media (max-width: 430px) {
  .bsm-mobile-header {
    min-height: 86px;
    padding-inline: 16px;
  }

  .bsm-mobile-logo img {
    max-width: 145px;
    max-height: 68px;
  }

  .bsm-mobile-header-actions {
    gap: 12px;
  }

  .bsm-mobile-icon-btn {
    width: 62px;
    height: 62px;
  }

  .bsm-mobile-icon-btn svg {
    width: 38px !important;
    height: 38px !important;
  }

  .bsm-portal-tabs {
    --bsm-tab-width: min(82vw, 250px);
  }
}

/* v0.4.9 uniqueness, company filters, phone code, and denser data views */
.bsm-phone-combo{display:flex;align-items:stretch;gap:8px;width:100%;direction:ltr;}
.bsm-phone-combo select{flex:0 0 112px!important;min-width:112px!important;text-align:center;}
.bsm-phone-combo input{flex:1 1 auto;min-width:0;}
body.rtl .bsm-phone-label{direction:rtl;}
body.rtl .bsm-phone-combo{direction:ltr;}
.bsm-portal-hero{padding:22px!important;min-height:auto!important;margin-bottom:12px!important;}
.bsm-portal-logo{width:58px;height:58px;border-radius:18px;}
.bsm-portal-hero-copy h2{font-size:clamp(26px,3.2vw,38px)!important;margin:6px 0 4px!important;}
.bsm-portal-hero-copy p{font-size:14px!important;line-height:1.45!important;}
.bsm-portal-hero-copy span{padding:5px 10px!important;font-size:11px!important;}
.bsm-portal-section-head{margin-bottom:12px!important;gap:12px!important;}
.bsm-portal-section-head h3{font-size:24px!important;margin-bottom:3px!important;}
.bsm-portal-section-head p{font-size:14px!important;line-height:1.4!important;}
.bsm-table-filters{margin:8px 0 12px!important;padding:10px!important;gap:8px!important;border-radius:16px!important;}
.bsm-table-filters label{gap:5px!important;min-width:150px!important;font-size:12px!important;}
.bsm-table-filters input,.bsm-table-filters select{min-height:40px!important;border-radius:12px!important;padding:8px 10px!important;font-size:13px!important;}
.bsm-table-filters .bsm-front-btn{min-height:40px!important;padding:8px 14px!important;}
.bsm-portal-panel{padding:18px!important;margin-bottom:16px!important;}
.bsm-portal-grid{gap:14px!important;margin-bottom:16px!important;}
.bsm-portal-stat{min-height:104px!important;padding:16px!important;}
.bsm-portal-stat strong{font-size:24px!important;}
.bsm-table th{padding-top:12px!important;padding-bottom:12px!important;}
.bsm-table td{padding-top:13px!important;padding-bottom:13px!important;}

@media (max-width:760px){
  .bsm-mobile-header{min-height:68px!important;margin-bottom:8px!important;padding:8px 14px!important;box-shadow:0 6px 14px rgba(15,23,42,.08)!important;}
  .bsm-mobile-logo img{max-width:118px!important;max-height:52px!important;}
  .bsm-mobile-logo-fallback{width:48px!important;height:48px!important;border-radius:14px!important;}
  .bsm-mobile-header-actions{gap:8px!important;}
  .bsm-mobile-icon-btn{width:50px!important;height:50px!important;border-radius:13px!important;}
  .bsm-mobile-icon-btn svg{width:30px!important;height:30px!important;}
  .bsm-mobile-badge{min-width:22px!important;height:22px!important;font-size:11px!important;border-width:2px!important;top:-5px!important;inset-inline-end:-5px!important;}
  .bsm-portal-tabs{margin-bottom:10px!important;padding-bottom:8px!important;}
  .bsm-portal-tab{min-height:52px!important;font-size:16px!important;padding:10px 14px!important;}
  .bsm-portal-section-head{margin-bottom:8px!important;}
  .bsm-portal-section-head h3{font-size:24px!important;}
  .bsm-portal-section-head p{display:none!important;}
  .bsm-table-filters{padding:9px!important;gap:7px!important;margin:6px 0 10px!important;border-radius:16px!important;}
  .bsm-table-filters label{gap:4px!important;min-width:0!important;}
  .bsm-table-filters input,.bsm-table-filters select{min-height:42px!important;border-radius:13px!important;}
  .bsm-table-filters .bsm-front-btn{min-height:42px!important;}
  .bsm-portal-panel{padding:12px!important;margin-bottom:12px!important;}
  .bsm-portal-grid{gap:10px!important;margin-bottom:10px!important;}
  .bsm-phone-combo{gap:6px;}
  .bsm-phone-combo select{flex-basis:96px!important;min-width:96px!important;padding-inline:8px!important;}
}

/* v0.5.0 monthly automation, messages, and D/M/Y date entry */
.bsm-date-dmy{direction:ltr;text-align:center;font-variant-numeric:tabular-nums;}
.bsm-field-hint{display:block;margin-top:6px;color:var(--bsm-muted);font-size:12px;font-weight:750;line-height:1.35;}
.bsm-message-settings{display:grid;gap:14px;}
.bsm-message-settings h4,.bsm-message-settings h3{margin-bottom:4px!important;}
.bsm-message-settings textarea{min-height:110px;resize:vertical;line-height:1.65;}
.bsm-custom-message-filters{align-items:end;}
.bsm-custom-notification-form .bsm-front-btn{justify-self:start;}
body.rtl .bsm-custom-notification-form .bsm-front-btn{justify-self:end;}
@media (max-width:760px){
  .bsm-message-settings textarea{min-height:96px;}
  .bsm-custom-message-filters{grid-template-columns:1fr!important;}
}


/* v0.5.1 compact filters, bulk bill actions, and portal-only settings cleanup */
.bsm-table-filters{display:block!important;}
.bsm-filter-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;align-items:end;width:100%;}
.bsm-filter-fields label{min-width:0!important;width:100%;}
.bsm-table-filters .bsm-filter-fields{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:stretch}
.bsm-table-filters .bsm-filter-fields label{display:flex;flex-direction:column;justify-content:flex-end;min-width:0!important}
.bsm-table-filters .bsm-filter-fields label>span{min-height:20px;line-height:20px}
.bsm-table-filters .bsm-filter-fields input,.bsm-table-filters .bsm-filter-fields select:not(.bsm-search-select-native),.bsm-table-filters .bsm-filter-fields .bsm-search-select-toggle,.bsm-table-filters .bsm-filter-fields .bsm-date-range-trigger{box-sizing:border-box;width:100%;height:46px!important;min-height:46px!important;margin:0!important;line-height:1.3}
.bsm-table-filters .bsm-filter-fields .bsm-date-range-picker,.bsm-table-filters .bsm-filter-fields .bsm-search-select{width:100%}
.bsm-filter-actions{display:flex;gap:10px;align-items:center;justify-content:flex-start;margin-top:12px;width:100%;}
body.rtl .bsm-filter-actions{justify-content:flex-end;}
.bsm-date-range-filter{min-width:260px!important;}
.bsm-date-range-inputs{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:7px;min-height:40px;border:1px solid var(--bsm-border);border-radius:12px;background:#fff;padding:0 8px;}
.bsm-date-range-inputs input{border:0!important;min-height:38px!important;padding:5px 3px!important;background:transparent!important;box-shadow:none!important;min-width:0;}
.bsm-date-range-inputs em{font-style:normal;color:var(--bsm-muted);font-weight:900;}
.bsm-bulk-actions{display:flex;gap:10px;align-items:center;justify-content:flex-start;margin:8px 0 12px;flex-wrap:wrap;}
body.rtl .bsm-bulk-actions{justify-content:flex-end;}
.bsm-bulk-actions select{min-height:40px;border:1px solid var(--bsm-border);border-radius:12px;padding:8px 12px;background:#fff;color:var(--bsm-text);font-weight:850;min-width:240px;}
.bsm-select-col{width:46px!important;text-align:center!important;}
.bsm-select-col input[type="checkbox"]{width:18px;height:18px;accent-color:var(--bsm-primary);}
.bsm-table th.bsm-select-col,.bsm-table td.bsm-select-col{padding-left:8px!important;padding-right:8px!important;}
@media (max-width:760px){
  .bsm-filter-fields{grid-template-columns:1fr!important;gap:8px;}
  .bsm-filter-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:8px;}
  .bsm-filter-actions .bsm-front-btn{width:100%;justify-content:center;}
  .bsm-date-range-filter{min-width:0!important;}
  .bsm-date-range-inputs{grid-template-columns:1fr;gap:2px;padding:6px 8px;}
  .bsm-date-range-inputs em{display:none;}
  .bsm-bulk-actions{display:grid;grid-template-columns:1fr;gap:8px;}
  .bsm-bulk-actions select,.bsm-bulk-actions .bsm-front-btn{width:100%;justify-content:center;}
  .bsm-table tbody tr.bsm-mobile-collapsible td.bsm-select-col{display:block!important;padding:10px 14px 0!important;}
  .bsm-table tbody tr.bsm-mobile-collapsible:not(.is-open) td.bsm-select-col + td{display:block!important;}
}

/* v0.5.2 date range calendar, restored discounts, and incomplete subscriber profiles */
.bsm-first-bill-preview{align-self:end;}
.bsm-incomplete-profile-badge{display:inline-flex;align-items:center;justify-content:center;margin-top:6px;padding:5px 9px;border-radius:999px;background:#fff7ed;color:#c2410c;font-size:11px!important;font-weight:950;line-height:1.2;width:max-content;max-width:100%;}
.bsm-status-cell .bsm-incomplete-profile-badge,.bsm-table td .bsm-incomplete-profile-badge + .bsm-incomplete-profile-badge{margin-inline-start:6px;}
.bsm-collector-mobile-fill{display:block!important;margin:8px 0 10px!important;font-size:12px!important;color:var(--bsm-muted)!important;font-weight:900!important;min-width:220px!important;}
.bsm-collector-mobile-fill span:first-child{display:block;margin-bottom:5px;}
.bsm-collector-mobile-fill .bsm-phone-combo select,.bsm-collector-mobile-fill .bsm-phone-combo input{min-height:38px!important;height:38px!important;border-radius:12px!important;font-size:13px!important;padding:7px 9px!important;}
.bsm-collector-filter-toolbar{display:none}.bsm-collector-sticky-building{display:none}
.bsm-collector-complete form{display:grid;gap:12px;margin:12px 0}.bsm-collector-complete form label{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:100%;font-weight:800;white-space:nowrap}.bsm-collector-complete form input{box-sizing:border-box;width:100%;min-height:44px;padding:8px 12px;border:1px solid #cfd8e8;border-radius:10px}.bsm-collector-complete form button{width:100%}
.bsm-collector-receipt-reopen{display:inline-flex;margin-top:10px;white-space:normal!important;text-align:center}
.bsm-collector-receipt-backdrop{position:fixed;inset:0;z-index:100100;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(15,23,42,.65)}
.bsm-collector-receipt-modal{box-sizing:border-box;position:relative;width:min(100%,520px);max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border-radius:20px;background:#fff;box-shadow:0 22px 70px rgba(0,0,0,.3);color:#172033}
.bsm-collector-receipt-modal h3{margin:0 32px 10px 0}.bsm-collector-receipt-modal p{margin:0 0 12px}.bsm-collector-receipt-message{padding:16px;border:1px solid #dbe2ef;border-radius:12px;background:#f8faff;line-height:1.8;white-space:normal;overflow-wrap:anywhere}
.bsm-collector-receipt-actions{display:grid;gap:10px;margin-top:16px}.bsm-collector-receipt-actions .bsm-front-btn{justify-content:center;text-align:center}
.bsm-collector-receipt-close:not(.bsm-front-btn){position:absolute;top:12px;left:14px;border:0;background:transparent;color:#172033;font-size:30px;cursor:pointer}
.bsm-subscribers-table tr[hidden]{display:none!important}
.bsm-payments-filter-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.bsm-payments-filter-toolbar strong{font-size:17px}.bsm-payments-filter-toolbar .bsm-collector-filter-toggle{display:none}
.bsm-subscriber-data-row{cursor:pointer}.bsm-subscriber-data-row:hover{background:#f8faff}.bsm-subscriber-data-row[aria-expanded="true"]{background:#f1f2ff}
.bsm-inline-toggle{border:0;border-radius:999px;padding:7px 12px;background:#eef0ff;color:#4f46e5;font:inherit;font-weight:900;cursor:pointer}
.bsm-inline-editor-row td{background:#f8faff;padding:18px!important;white-space:normal!important}.bsm-inline-editor h3{margin:0 0 12px}.bsm-inline-editor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.bsm-inline-editor-grid label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:900;color:#465168}.bsm-inline-editor-grid input,.bsm-inline-editor-grid select{box-sizing:border-box;width:100%;min-height:42px;padding:7px 10px;border:1px solid #cfd8e8;border-radius:10px;background:#fff;color:#172033;font:inherit}.bsm-inline-editor-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}.bsm-inline-save-status{font-size:13px;font-weight:900;color:#4f46e5}
.bsm-subscribers-table th .bsm-column-filter,.bsm-subscribers-table th .bsm-search-select-toggle{box-sizing:border-box;width:100%;height:40px!important;min-height:40px!important;padding:6px 10px;font-size:13px}.bsm-subscribers-table th .bsm-search-select{width:100%;min-width:0;margin-top:0}
.bsm-subscriber-bulk-bar .bsm-bulk-action{height:42px;min-height:42px;padding:8px 12px}.bsm-subscriber-bulk-bar .bsm-apply-bulk{height:42px;min-height:42px}
@media (max-width:760px){
  .bsm-payments-filter-toolbar .bsm-collector-filter-toggle{display:flex;width:auto;min-width:140px;padding:6px 12px}
  .bsm-collector-filter-toolbar{display:block;margin:8px 0}
  .bsm-collector-filter-toggle{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;border:1px solid #c7d2fe;border-radius:14px;background:#fff;color:#4338ca;font:inherit;font-weight:900;cursor:pointer}
  .bsm-collector-filter-toggle span:first-child{font-size:24px;line-height:1}.bsm-collector-filter-close{display:none;font-size:27px;line-height:1}
  .bsm-collector-filter-toggle[aria-expanded="true"] span:first-child{display:none}.bsm-collector-filter-toggle[aria-expanded="true"] .bsm-collector-filter-close{display:inline}
  .bsm-collector-shell .bsm-collector-filter-panel{display:none!important}.bsm-collector-shell .bsm-collector-filter-panel.is-open{display:block!important}
  .bsm-collector-shell .bsm-collector-filter-panel .bsm-filter-fields{display:grid;grid-template-columns:minmax(0,1fr)}
  .bsm-collector-shell .bsm-month-filter{min-width:0;width:100%}.bsm-collector-shell .bsm-month-filter input[type="month"]{box-sizing:border-box;width:100%!important;min-width:0!important;direction:ltr;text-align:left;font-size:16px!important}
  .bsm-collector-sticky-building{display:block;position:sticky;top:8px;z-index:900;margin:8px 0;padding:9px 12px;border:1px solid #dbe2ef;border-radius:14px;background:#fff;box-shadow:0 8px 22px rgba(23,32,51,.12)}
  .bsm-collector-sticky-building label{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:900;white-space:nowrap}
  .bsm-collector-sticky-building select{box-sizing:border-box;min-width:0;width:100%;min-height:42px;font:inherit;border:1px solid #cfd8e8;border-radius:10px;background:#fff;color:#172033}
  .bsm-collector-complete form label{font-size:15px!important;line-height:1.5!important}
  .bsm-collector-receipt-modal{padding:20px 16px}
  .bsm-subscribers-table .bsm-inline-editor-row{display:block!important}.bsm-subscribers-table .bsm-inline-editor-row[hidden]{display:none!important}.bsm-subscribers-table .bsm-inline-editor-grid{grid-template-columns:1fr}
}
.bsm-date-range-filter{position:relative!important;}
.bsm-date-range-picker{position:relative;width:100%;}
.bsm-date-range-trigger{width:100%;min-height:40px;border:1px solid var(--bsm-border);border-radius:12px;background:#fff;color:var(--bsm-text);font-size:13px;font-weight:850;text-align:start;padding:8px 12px;cursor:pointer;box-shadow:none;}
body.rtl .bsm-date-range-trigger{text-align:right;}
.bsm-date-range-popover{position:absolute;z-index:1000;top:calc(100% + 8px);inset-inline-start:0;width:min(360px,92vw);padding:14px;border:1px solid var(--bsm-border);border-radius:18px;background:#fff;box-shadow:0 22px 60px rgba(15,23,42,.18);}
body.rtl .bsm-date-range-popover{inset-inline-start:auto;inset-inline-end:0;}
.bsm-range-cal-head{display:grid;grid-template-columns:42px 1fr 42px;align-items:center;gap:8px;margin-bottom:10px;}
.bsm-range-cal-head strong{text-align:center;color:var(--bsm-text);font-size:16px;font-weight:950;}
.bsm-range-cal-head button,.bsm-range-cal-actions button{border:1px solid var(--bsm-border);background:#fff;border-radius:12px;min-height:38px;font-weight:950;color:var(--bsm-text);cursor:pointer;}
.bsm-range-weekdays,.bsm-range-days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;}
.bsm-range-weekdays span{text-align:center;color:var(--bsm-muted);font-size:11px;font-weight:950;}
.bsm-range-days button{border:0;background:#fff;border-radius:999px;min-height:40px;color:var(--bsm-text);font-size:14px;font-weight:800;cursor:pointer;}
.bsm-range-days button.is-out{color:#a1a1aa;}
.bsm-range-days button.is-in-range{background:#fce7ef;border-radius:0;}
.bsm-range-days button.is-start,.bsm-range-days button.is-end{background:#f00654;color:#fff;border-radius:999px;box-shadow:0 8px 20px rgba(240,6,84,.22);}
.bsm-range-cal-actions{display:flex;justify-content:space-between;gap:8px;margin-top:12px;}
.bsm-range-cal-actions button{padding:8px 14px;min-width:82px;}
.bsm-range-cal-actions button:last-child{background:var(--bsm-primary);border-color:var(--bsm-primary);color:#fff;}
@media (max-width:760px){
  .bsm-date-range-popover{position:fixed;top:auto;left:12px!important;right:12px!important;bottom:18px;width:auto;max-height:80vh;overflow:auto;}
  .bsm-collector-mobile-fill{min-width:0!important;width:100%;}
}

/* v0.5.3 native calendar for subscriber start date */
.bsm-native-date-picker{
  direction:ltr!important;
  text-align:center!important;
  cursor:pointer;
}
.bsm-native-date-picker::-webkit-calendar-picker-indicator{
  cursor:pointer;
  opacity:.75;
}

/* v0.5.6 dashboard filters, invoice date cleanup, and Whish collection */
.bsm-collect-method-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-start;min-width:max-content;}
body.rtl .bsm-collect-method-actions{justify-content:flex-end;}
.bsm-collect-method-actions .bsm-front-btn.small{white-space:nowrap;}
.bsm-table .bsm-inline-form .bsm-collect-method-actions{margin-top:0;}

/* Bill collection controls and bulk action alignment. */
.bsm-bulk-actions select{box-sizing:border-box;width:300px;max-width:100%;min-width:0;min-height:44px;height:44px;padding:8px 12px;font-size:15px;line-height:1.3;}
.bsm-bulk-actions .bsm-front-btn{box-sizing:border-box;min-height:44px;height:44px;}
.bsm-table td .bsm-bill-collect-form{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:260px;max-width:100%;margin:0;white-space:normal;}
.bsm-table td .bsm-bill-collect-form label{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0;margin:0;font-size:14px;font-weight:800;line-height:1.35;text-align:start;}
.bsm-table td .bsm-bill-collect-form label span{display:block;white-space:normal;}
.bsm-table td .bsm-bill-collect-form input{box-sizing:border-box;display:block;width:100%;min-width:0;min-height:42px;margin:0;padding:8px 10px;border:1px solid var(--bsm-border);border-radius:10px;font-size:15px;line-height:1.3;direction:ltr;text-align:start;}
.bsm-table td .bsm-bill-collect-form .bsm-collect-method-actions{min-width:0;margin-top:2px;justify-content:flex-start;}
@media(max-width:760px){.bsm-bulk-actions select{width:100%;}.bsm-table td .bsm-bill-collect-form{width:100%;}}

/* Collector permissions and assigned areas in the team editor. */
.bsm-portal-form .bsm-collector-permissions,.bsm-portal-form .bsm-collector-area-field{min-width:0;margin:0 0 16px;padding:14px;border:1px solid var(--bsm-border);border-radius:14px;}
.bsm-portal-form .bsm-collector-permissions legend,.bsm-portal-form .bsm-collector-area-field legend{padding:0 6px;font-size:15px;font-weight:900;}
.bsm-portal-form .bsm-collector-permissions label,.bsm-portal-form .bsm-collector-area-options label{display:flex;align-items:center;justify-content:flex-start;gap:8px;margin:0 0 9px;cursor:pointer;font-size:14px;font-weight:750;}
.bsm-portal-form .bsm-collector-permissions input[type="checkbox"],.bsm-portal-form .bsm-collector-area-options input[type="checkbox"]{appearance:auto!important;display:inline-block!important;flex:0 0 17px!important;width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;margin:0!important;padding:0!important;vertical-align:middle;accent-color:var(--bsm-primary);}
.bsm-collector-area-picker{position:relative;}
.bsm-collector-area-picker details{position:relative;}
.bsm-collector-area-picker summary{list-style:none;cursor:pointer;min-height:46px;display:flex;align-items:center;padding:10px 12px;border:1px solid var(--bsm-border);border-radius:11px;background:#fff;font-weight:800;}
.bsm-collector-area-picker summary::-webkit-details-marker{display:none;}
.bsm-collector-area-picker summary:after{content:'⌄';margin-inline-start:auto;color:var(--bsm-primary);}
.bsm-collector-area-menu{position:absolute;z-index:10050;inset-inline:0;top:calc(100% + 5px);padding:9px;border:1px solid var(--bsm-border);border-radius:12px;background:#fff;box-shadow:0 14px 28px rgba(15,23,42,.15);}
.bsm-portal-form .bsm-collector-area-search{width:100%;min-height:40px!important;height:40px!important;margin:0 0 7px!important;}
.bsm-collector-area-options{max-height:210px;overflow:auto;overscroll-behavior:contain;}
.bsm-collector-area-options label{padding:6px 4px;}
.bsm-collector-area-options label[hidden]{display:none!important;}
.bsm-collector-area-tags{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 8px;}
.bsm-collector-area-tags:empty{display:none;}
.bsm-collector-area-tags span{display:inline-block;padding:4px 9px;border-radius:999px;background:#eef0ff;color:var(--bsm-primary);font-size:12px;font-weight:850;}
.bsm-collector-area-field small{display:block;margin-top:9px;color:var(--bsm-muted);}
.bsm-collector-area-menu{position:fixed!important;inset-inline:auto!important;z-index:999999!important;overflow:auto;direction:rtl;box-sizing:border-box;}
.bsm-collector-area-menu[hidden]{display:none!important;}
.bsm-collector-area-menu .bsm-collector-area-options label{display:flex;align-items:center;gap:8px;margin:0 0 9px;cursor:pointer;font-size:14px;font-weight:750;}
.bsm-collector-area-menu .bsm-collector-area-options label[hidden]{display:none!important;}
.bsm-collector-area-menu input[type="checkbox"]{appearance:auto!important;display:inline-block!important;flex:0 0 17px!important;width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;margin:0!important;padding:0!important;accent-color:var(--bsm-primary);}
.bsm-collector-area-menu input[type="search"]{box-sizing:border-box;width:100%;min-height:40px;padding:8px 10px;margin:0 0 7px;border:1px solid var(--bsm-border);border-radius:9px;}

/* Collector payment fields: each caption sits above its own control. */
.bsm-subscriber-collect-table .bsm-collector-payment-field{display:flex;flex-direction:column;align-items:stretch;gap:7px;width:100%;min-width:0;margin:0;text-align:start;}
.bsm-subscriber-collect-table .bsm-collector-payment-field>span{display:block;width:100%;font-weight:800;line-height:1.4;}
.bsm-subscriber-collect-table .bsm-collector-payment-field>input{box-sizing:border-box;display:block;width:100%;min-width:0;min-height:44px;margin:0;padding:9px 12px;border:1px solid var(--bsm-border);border-radius:11px;font-size:16px;}
@media(max-width:760px){
  .bsm-subscriber-collect-table .bsm-mobile-collect{display:grid!important;grid-template-columns:minmax(0,1fr);gap:14px;width:100%;margin-top:18px;}
  .bsm-subscriber-collect-table .bsm-mobile-collect>.bsm-collector-mobile-fill{display:flex;flex-direction:column;align-items:stretch;gap:7px;width:100%;margin:0;}
  .bsm-subscriber-collect-table .bsm-mobile-collect>.bsm-collector-mobile-fill>span:first-child{display:block;width:100%;}
  .bsm-subscriber-collect-table .bsm-mobile-collect>.bsm-collect-method-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%;margin-top:4px;}
  .bsm-subscriber-collect-table .bsm-mobile-collect .bsm-collect-method-actions .bsm-front-btn{width:100%;min-width:0;min-height:54px;height:54px;margin-top:0;white-space:nowrap;line-height:1.2;}
  .bsm-subscriber-collect-table .bsm-collector-complete label{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:0 0 12px;}
  .bsm-subscriber-collect-table .bsm-collector-complete label>input{width:100%;min-width:0;}
}
@media (max-width:760px){
  .bsm-collect-method-actions{min-width:0;width:100%;}
  .bsm-collect-method-actions .bsm-front-btn.small{flex:1 1 130px;justify-content:center;}
}

/* Branded portal authentication and business URL controls. */
.bsm-password-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.bsm-password-wrap input {
  width: 100%;
  padding-inline-end: 50px !important;
  box-sizing: border-box;
}
.bsm-password-toggle {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4f46e5;
  cursor: pointer;
}
.bsm-password-toggle:hover,
.bsm-password-toggle:focus-visible {
  background: #eef2ff;
  outline: 2px solid transparent;
}
.bsm-login-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff1f2;
  color: #b42318;
  font-weight: 800;
  line-height: 1.5;
}
.bsm-portal-login-form p { margin: 0 0 14px; }
.bsm-field-hint {
  display: block;
  margin-top: 7px;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.bsm-field-hint strong { color: #4f46e5; }
.bsm-login-business-logo { display:flex; align-items:center; justify-content:center; margin:0 0 14px; }
.bsm-login-business-logo img { display:block; max-width:150px; max-height:72px; width:auto; height:auto; object-fit:contain; }

/* v0.5.30 visual foundation for public registration and the business portal. */
.bsm-public-wrap,.bsm-portal-shell {
  --bsm-bg:#f6f7f9;--bsm-card:#fff;--bsm-text:#253247;
  --bsm-muted:#57677e;--bsm-border:#dce3eb;--bsm-primary:#4942c8;
  --bsm-primary-dark:#3731a4;--bsm-soft:#eeedfc;
  --bsm-success:#157a55;--bsm-warning:#9a630e;--bsm-danger:#b73539;
  color:var(--bsm-text);
  font-family:"Noto Sans Arabic","IBM Plex Sans Arabic",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px;line-height:1.65;
}
.bsm-public-wrap :is(.bsm-public-hero,.bsm-register-form),
.bsm-portal-shell :is(.bsm-portal-hero,.bsm-portal-panel,.bsm-portal-stat,.bsm-quota){border:1px solid var(--bsm-border);border-radius:16px;box-shadow:0 5px 22px rgba(34,48,72,.055)}
.bsm-public-wrap .bsm-public-hero,.bsm-portal-shell .bsm-portal-hero{background:linear-gradient(120deg,#fff,#f8f9fd);padding:24px}
.bsm-portal-shell .bsm-portal-logo{border-radius:17px;background:var(--bsm-primary);box-shadow:0 5px 16px rgba(73,66,200,.16)}
.bsm-public-wrap .bsm-public-hero h2,.bsm-portal-shell .bsm-portal-hero-copy h2{font-size:clamp(24px,3vw,34px);line-height:1.4;font-weight:760}
.bsm-portal-shell .bsm-portal-section-head h3{font-size:clamp(21px,2.2vw,26px);line-height:1.4;font-weight:750}
.bsm-portal-shell .bsm-portal-panel h3{line-height:1.45;font-weight:750}
.bsm-portal-shell .bsm-portal-stat strong{line-height:1.4;font-weight:770;font-variant-numeric:tabular-nums}
.bsm-portal-shell :is(.bsm-portal-tab,.bsm-front-btn,.bsm-search-select-toggle){border-radius:10px;box-shadow:none;transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}
.bsm-portal-shell .bsm-portal-tab:hover,.bsm-portal-shell .bsm-portal-tab.active{transform:none;box-shadow:0 4px 12px rgba(73,66,200,.12)}
.bsm-portal-shell .bsm-front-btn.primary{box-shadow:none}
.bsm-portal-shell .bsm-front-btn.primary:hover{box-shadow:0 4px 12px rgba(73,66,200,.16)}
.bsm-portal-shell .bsm-table th{background:#f3f5f9;color:var(--bsm-text);font-weight:750;border-color:var(--bsm-border)}
.bsm-portal-shell .bsm-table td{border-color:#e8ecf2;line-height:1.6}
.bsm-portal-shell .bsm-table tbody tr:hover{background:#f8f9fc}
.bsm-portal-shell .bsm-table td strong{font-weight:770}
.bsm-portal-shell .bsm-table :is(th,td){padding-inline:15px}
.bsm-portal-shell .bsm-table-filters{border-color:var(--bsm-border);box-shadow:0 3px 16px rgba(34,48,72,.045)}
.bsm-portal-shell :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea,.bsm-search-select-toggle){border-color:var(--bsm-border);color:var(--bsm-text)}
.bsm-portal-shell :is(input,select,textarea,button,a,[tabindex]):focus-visible,.bsm-public-wrap :is(input,select,textarea,button,a,[tabindex]):focus-visible{outline:2px solid var(--bsm-primary);outline-offset:2px}
.bsm-portal-shell :is(button,input,select,textarea),.bsm-public-wrap :is(button,input,select,textarea){transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}
@media(max-width:760px){.bsm-portal-shell .bsm-portal-hero{padding:18px}.bsm-portal-shell .bsm-portal-panel{padding:18px}.bsm-portal-shell .bsm-portal-section-head{gap:12px}}
@media(prefers-reduced-motion:reduce){.bsm-portal-shell :is(.bsm-portal-tab,.bsm-front-btn,button,input,select,textarea),.bsm-public-wrap :is(button,input,select,textarea){transition:none}}

@media (max-width:760px){
.bsm-collector-sticky-building{display:grid;gap:8px;position:static;box-shadow:none}
.bsm-collector-sticky-building label{display:grid;gap:4px;white-space:normal}
.bsm-collector-sticky-building input[type="search"]{box-sizing:border-box;width:100%;min-height:44px;border:1px solid #cfd8e8;border-radius:10px;padding:8px 12px;font:inherit}
.bsm-collector-sticky-building .bsm-collector-search-submit{min-height:42px;border:0;border-radius:10px;background:#4f46e5;color:#fff;font:inherit;font-weight:800}
.bsm-collector-shell .bsm-collector-filter-panel .bsm-filter-search{display:none}
}

.bsm-subscriber-period-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:0 0 14px}.bsm-subscriber-period-form label{display:grid;gap:5px;font-weight:800}.bsm-subscriber-period-form input{min-height:40px;border:1px solid #cfd8e8;border-radius:10px;padding:6px 10px}

/* 0.5.43: compact monthly dashboard, account menu and invoice filters. */
.bsm-portal-shell .bsm-portal-hero{display:flex!important;flex-direction:row!important;align-items:center!important;direction:ltr;gap:18px;padding:20px 26px!important;overflow:visible;text-align:left!important}
.bsm-portal-shell .bsm-portal-logo{width:96px;height:96px;flex:0 0 96px;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0!important}
.bsm-portal-logo img{width:100%;height:100%;object-fit:contain}
.bsm-portal-hero-copy h2{margin:0!important;font-size:clamp(24px,2.5vw,38px)!important;line-height:1.2!important}
.bsm-account-menu{position:relative;margin-left:auto;direction:rtl;z-index:100}
.bsm-account-menu summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;padding:8px;border-radius:14px}
.bsm-account-menu summary::-webkit-details-marker{display:none}.bsm-account-menu summary:hover{background:#eef2ff}.bsm-account-menu img{width:48px;height:48px;border-radius:50%;object-fit:cover}
.bsm-account-dropdown{position:absolute;top:100%;right:0;min-width:210px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:6px;box-shadow:0 16px 40px #0f172a20}
.bsm-account-dropdown a,.bsm-account-dropdown button{display:block;width:100%;padding:12px;text-align:right;background:none;border:0;font:inherit;color:var(--bsm-text);cursor:pointer;text-decoration:none;border-radius:9px}.bsm-account-dropdown a:hover,.bsm-account-dropdown button:hover{background:#eef2ff}
.bsm-subscriber-period-form{display:flex!important;align-items:flex-end!important;justify-content:flex-start;gap:12px;margin:0 0 18px!important;padding:14px 18px;border:1px solid #e2e8f0;background:#fff;border-radius:16px;flex-wrap:wrap}
.bsm-issued-period-selects{display:flex!important;gap:12px;align-items:flex-end;min-width:0}
.bsm-issued-period-selects label{flex:1;min-width:100px}.bsm-issued-period-selects select{width:100%;min-height:46px}
.bsm-dashboard-metrics{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important}
.bsm-dashboard-metrics .bsm-portal-stat{padding:20px!important;min-height:160px!important}
.bsm-dashboard-caption{font-size:13px;color:var(--bsm-muted);margin:10px 0 16px;line-height:1.8}.bsm-settlement-note{padding:12px 16px;background:#f1f5f9;border-radius:12px}
.bsm-invoice-filters .bsm-filter-fields{display:grid!important;grid-template-columns:minmax(180px,1.4fr) repeat(6,minmax(100px,1fr));gap:12px;align-items:end}
.bsm-invoice-filters .bsm-issued-period-selects{display:contents!important}.bsm-invoice-filters .bsm-filter-fields>label,.bsm-invoice-filters .bsm-issued-period-selects label{min-width:0!important;grid-column:auto!important;width:auto!important}
.bsm-invoice-filters input,.bsm-invoice-filters select{width:100%!important;min-width:0!important;min-height:48px!important}
@media(min-width:761px){.bsm-mobile-overlay[data-bsm-overlay="profile"].is-open{display:flex;position:fixed;inset:0;z-index:99999;align-items:center;justify-content:center;background:#0f172a66;padding:30px}.bsm-mobile-overlay[data-bsm-overlay="profile"] .bsm-mobile-overlay-panel{background:#fff;border-radius:22px;width:min(720px,100%);max-height:85vh;overflow:auto;padding:24px;direction:rtl}.bsm-mobile-overlay-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.bsm-profile-section{display:none}.bsm-profile-section.is-active{display:block}.bsm-profile-tabs{display:flex;gap:8px;margin-bottom:20px}.bsm-profile-form{display:grid;gap:14px}.bsm-profile-form label{display:grid;gap:6px}.bsm-profile-form input,.bsm-profile-form textarea{width:100%}}
@media(max-width:1199px){.bsm-dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}.bsm-invoice-filters .bsm-filter-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.bsm-portal-shell .bsm-portal-hero{padding:14px!important;gap:12px}.bsm-portal-shell .bsm-portal-logo{width:64px;height:64px;flex-basis:64px}.bsm-account-menu summary>span:not(:last-child){display:none}.bsm-account-menu img{width:38px;height:38px}.bsm-dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.bsm-invoice-filters .bsm-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.bsm-invoice-filters .bsm-filter-search{grid-column:1/-1!important}.bsm-subscriber-period-form{gap:8px;padding:12px}.bsm-issued-period-selects{flex:1}.bsm-subscriber-period-form>button{width:100%}}

@media(max-width:760px){.bsm-portal-shell .bsm-portal-hero{display:none!important}.bsm-mobile-icon-btn .avatar{width:32px;height:32px;border-radius:50%;object-fit:cover}}
.bsm-portal-shell,.bsm-portal-shell *,.bsm-portal-shell *::before,.bsm-portal-shell *::after{box-sizing:border-box}
@media(max-width:760px){.bsm-dashboard-metrics{gap:10px!important}.bsm-dashboard-metrics .bsm-portal-stat{padding:16px!important;min-height:140px!important}.bsm-dashboard-metrics .bsm-portal-stat strong{font-size:28px!important}.bsm-dashboard-metrics .bsm-portal-stat-icon{width:42px;height:42px;margin-bottom:12px}}

/* 0.5.44: month controls beside navigation and compact financial cards. */
.bsm-portal-tabs{display:flex!important;align-items:center;flex-wrap:wrap;gap:8px!important}
.bsm-portal-tab{padding:10px 12px!important;font-size:14px!important;min-height:44px!important}
.bsm-dashboard-month-controls{display:flex;align-items:center;gap:6px;margin-inline-start:auto;padding:0;flex:0 0 auto}
.bsm-dashboard-month-controls .bsm-issued-period-selects{display:flex!important;gap:6px!important;align-items:center!important}
.bsm-dashboard-month-controls label{font-size:0!important;min-width:0!important;width:84px;flex:none!important;margin:0!important}
.bsm-dashboard-month-controls select,.bsm-dashboard-month-controls .bsm-search-select-toggle{height:44px!important;min-height:44px!important;width:84px!important;border-radius:10px!important;font-size:14px!important;padding:8px!important;box-sizing:border-box}
.bsm-dashboard-month-controls .bsm-search-select{min-width:0!important;width:84px!important;font-size:14px}
.bsm-dashboard-month-controls .bsm-front-btn{height:44px!important;min-height:44px!important;width:44px;padding:10px!important;border-radius:10px}
.bsm-dashboard-metrics .bsm-portal-stat{display:grid!important;grid-template-columns:24px minmax(0,1fr);gap:10px!important;align-content:start;align-items:start;padding:16px!important;min-height:140px!important}
.bsm-dashboard-metrics .bsm-portal-stat-icon{width:24px!important;height:24px!important;padding:0!important;margin:0!important;background:none!important;box-shadow:none!important;border-radius:0!important}
.bsm-dashboard-metrics .bsm-portal-stat-icon svg{width:22px;height:22px}
.bsm-dashboard-metrics .bsm-portal-stat span{font-size:13px;line-height:1.5!important}.bsm-dashboard-metrics .bsm-portal-stat strong{display:block;margin-top:10px!important;font-size:clamp(20px,1.6vw,30px)!important;line-height:1.3;overflow-wrap:anywhere}
.bsm-card-secondary{display:flex;flex-direction:column;gap:3px;margin-top:10px;padding-top:8px;border-top:1px solid #e2e8f0;color:var(--bsm-muted);font-size:11px}.bsm-card-secondary span{font-size:11px!important}.bsm-card-secondary b{color:var(--bsm-text);font-size:13px;font-weight:800}
@media(max-width:760px){.bsm-dashboard-month-controls{margin:6px 0;width:100%;justify-content:flex-end}.bsm-dashboard-metrics .bsm-portal-stat{min-height:125px!important;padding:12px!important;gap:7px!important}.bsm-dashboard-metrics .bsm-portal-stat strong{font-size:22px!important}.bsm-dashboard-metrics .bsm-portal-stat span{font-size:12px}.bsm-dashboard-metrics .bsm-month-payment-card{grid-column:1/-1}}
.bsm-dashboard-metrics .bsm-portal-stat>div:last-child{display:contents}
.bsm-dashboard-metrics .bsm-portal-stat>div:last-child>span{grid-column:2;align-self:center}
.bsm-dashboard-metrics .bsm-portal-stat>div:last-child>strong{grid-column:1/-1;margin-top:0!important;font-size:clamp(20px,1.5vw,28px)!important;white-space:nowrap;overflow-wrap:normal}
.bsm-dashboard-metrics .bsm-card-secondary{grid-column:1/-1;margin-top:0;padding-top:8px}

.bsm-delete-receipt{color:#b42318!important;border-color:#fecaca!important;min-height:36px!important;padding:6px 12px!important}.bsm-delete-receipt:hover{background:#fff1f2!important}

/* Invoice phone numbers keep their international prefix on the left in RTL. */
.bsm-table .bsm-phone-text{direction:ltr!important;unicode-bidi:isolate!important;display:block;text-align:right}
/* Subscriber month selector uses equal columns and controls. */
.bsm-subscriber-period-form:has(.bsm-issued-period-selects){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px!important;align-items:end!important}
.bsm-subscriber-period-form .bsm-issued-period-selects{display:contents!important}
.bsm-subscriber-period-form .bsm-issued-period-selects label{min-width:0!important;display:grid;gap:6px;margin:0!important}
.bsm-subscriber-period-form .bsm-issued-period-selects select,.bsm-subscriber-period-form:has(.bsm-issued-period-selects)>button{width:100%!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;box-sizing:border-box!important}
@media(max-width:480px){.bsm-subscriber-period-form:has(.bsm-issued-period-selects){grid-template-columns:repeat(2,minmax(0,1fr))}.bsm-subscriber-period-form:has(.bsm-issued-period-selects)>button{grid-column:1/-1}}

.bsm-subscriber-period-form .bsm-issued-period-selects select{background:#fff!important;border:1px solid #dce4f3!important;border-radius:10px!important;padding:0 12px!important;font:inherit;color:inherit}

.bsm-team-edit{margin-top:10px;display:inline-flex;min-height:40px}.bsm-team-areas{max-width:280px;white-space:normal;line-height:1.7}

/* Electricity uses the shared collector controls above meter cards. */
.bsm-electricity > .bsm-portal-panel{overflow:visible}
@media(max-width:760px){
.bsm-electricity .bsm-collector-sticky-building{position:sticky;top:8px;z-index:900;box-shadow:0 8px 22px rgba(23,32,51,.12)}
}


/* v0.6.7: Isolated Arabic RTL business portal + precision-aligned controls.
   Do not flip whole tables/values with transform or row-reverse: keep DOM/reading order. */
.bsm-portal-shell[dir="rtl"]{direction:rtl!important;text-align:start!important;min-width:0}
.bsm-portal-shell[dir="rtl"] .bsm-portal-hero{direction:rtl!important;flex-direction:row!important;text-align:start!important;align-items:center!important;gap:18px!important;min-width:0}
.bsm-portal-shell[dir="rtl"] .bsm-portal-logo{order:0;flex-shrink:0}
.bsm-portal-shell[dir="rtl"] .bsm-portal-hero-copy{order:1;flex:1 1 auto;min-width:0;text-align:start}
.bsm-portal-shell[dir="rtl"] .bsm-account-menu{order:2;margin-left:0!important;margin-right:auto!important;margin-inline-start:auto!important;margin-inline-end:0!important;flex-shrink:0}
.bsm-portal-shell[dir="rtl"] .bsm-account-menu summary{direction:rtl;white-space:nowrap}
.bsm-portal-shell[dir="rtl"] .bsm-account-dropdown{right:auto!important;left:0!important;text-align:right!important}
.bsm-portal-shell[dir="rtl"] .bsm-portal-tabs{direction:rtl!important;justify-content:flex-start!important;align-items:center!important;row-gap:10px!important}
.bsm-portal-shell[dir="rtl"] .bsm-portal-tab{direction:rtl!important;flex-direction:row!important;justify-content:center;gap:8px!important;white-space:nowrap;min-height:46px!important}
.bsm-portal-shell[dir="rtl"] .bsm-portal-content,
.bsm-portal-shell[dir="rtl"] .bsm-portal-panel,
.bsm-portal-shell[dir="rtl"] .bsm-portal-panel-head,
.bsm-portal-shell[dir="rtl"] .bsm-portal-section-head,
.bsm-portal-shell[dir="rtl"] .bsm-portal-grid,
.bsm-portal-shell[dir="rtl"] .bsm-dashboard-metrics,
.bsm-portal-shell[dir="rtl"] .bsm-filter-fields{direction:rtl;text-align:start;min-width:0}
.bsm-portal-shell[dir="rtl"] .bsm-dashboard-month-controls{direction:rtl;margin-inline-start:auto!important;margin-left:0;margin-right:auto}
.bsm-portal-shell[dir="rtl"] .bsm-dashboard-metrics{align-items:stretch!important;grid-auto-rows:minmax(158px,auto);gap:12px!important}
.bsm-portal-shell[dir="rtl"] .bsm-dashboard-metrics .bsm-portal-stat{height:100%;min-height:158px!important;grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:auto 1fr auto;align-items:start;align-content:start;gap:8px 9px!important;text-align:right;padding:16px!important;min-width:0}
.bsm-portal-shell[dir="rtl"] .bsm-dashboard-metrics .bsm-portal-stat-icon{grid-column:1;grid-row:1;margin:0!important}
.bsm-portal-shell[dir="rtl"] .bsm-dashboard-metrics .bsm-portal-stat>div:last-child>span{grid-column:2;grid-row:1;line-height:1.55!important;min-height:40px;display:flex;align-items:flex-start}
.bsm-portal-shell[dir="rtl"] .bsm-dashboard-metrics .bsm-portal-stat>div:last-child>strong{grid-column:1/-1;grid-row:2;align-self:start;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;font-size:clamp(19px,1.45vw,26px)!important;line-height:1.5!important}
.bsm-portal-shell[dir="rtl"] .bsm-dashboard-metrics .bsm-card-secondary{grid-column:1/-1;grid-row:3;margin-top:auto;min-width:0}
.bsm-portal-shell[dir="rtl"] .bsm-dashboard-metrics .bsm-portal-stat>div:last-child{display:contents}
.bsm-portal-shell[dir="rtl"] :is(input,select,textarea,.bsm-search-select-toggle,.bsm-date-range-trigger){box-sizing:border-box;max-width:100%}
.bsm-portal-shell[dir="rtl"] :is(.bsm-filter-fields,.bsm-inline-editor-grid,.bsm-public-grid) > label{min-width:0}
.bsm-portal-shell[dir="rtl"] :is(.bsm-filter-fields,.bsm-inline-editor-grid) :is(input,select,textarea){width:100%;min-height:44px;line-height:1.45}
.bsm-portal-shell[dir="rtl"] :is(input[type="number"],input[type="tel"],input[type="email"],input[type="url"],input[type="date"],input[type="month"],input[type="time"],input[dir="ltr"],.bsm-phone-input,.bsm-ltr-value,.bsm-date-dmy,.bsm-phone-text){direction:ltr!important;unicode-bidi:isolate;text-align:left;font-variant-numeric:tabular-nums}
.bsm-portal-shell[dir="rtl"] .bsm-table :is(th,td){text-align:right}
.bsm-portal-shell[dir="rtl"] .bsm-table .bsm-phone-text{text-align:right!important}
.bsm-portal-shell[dir="rtl"] .bsm-table-scroll{max-width:100%}
.bsm-portal-shell[dir="rtl"] .bsm-account-menu :is(button,a){text-align:right!important}
@media(min-width:761px) and (max-width:1250px){
  .bsm-portal-shell[dir="rtl"] .bsm-dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:760px){
 .bsm-portal-shell[dir="rtl"] .bsm-mobile-header{direction:rtl!important}
 .bsm-portal-shell[dir="rtl"] .bsm-portal-tabs{justify-content:flex-start!important;direction:rtl!important}
 .bsm-portal-shell[dir="rtl"] .bsm-dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:minmax(145px,auto)}
 .bsm-portal-shell[dir="rtl"] .bsm-dashboard-metrics .bsm-portal-stat{min-height:145px!important;padding:12px!important}
 .bsm-portal-shell[dir="rtl"] .bsm-dashboard-metrics .bsm-portal-stat>div:last-child>strong{font-size:clamp(17px,4.8vw,23px)!important}
 .bsm-portal-shell[dir="rtl"] .bsm-dashboard-month-controls{width:100%;margin:8px 0!important;justify-content:flex-start!important}
}
@media(max-width:420px){.bsm-portal-shell[dir="rtl"] .bsm-dashboard-metrics{grid-template-columns:1fr!important}.bsm-portal-shell[dir="rtl"] .bsm-dashboard-metrics .bsm-portal-stat{min-height:115px!important}}

/* v0.6.8 Collector mobile: compact full-width cards, alternate rows, safe RTL */
@media (max-width:760px){
  .bsm-portal-shell.bsm-collector-shell{
    box-sizing:border-box!important;width:calc(100vw - 16px)!important;max-width:none!important;
    position:relative;left:50%;transform:translateX(-50%);margin:0!important;
    padding-inline:0!important;overflow-x:clip;
  }
  .bsm-collector-shell .bsm-mobile-header{padding:8px 12px!important;min-height:58px!important}
  .bsm-collector-shell .bsm-portal-tabs{display:flex!important;gap:6px!important;margin:5px 0 9px!important;
    padding:4px 2px 7px!important;overflow-x:auto;grid-template-columns:none!important}
  .bsm-collector-shell .bsm-portal-tabs .bsm-portal-tab{width:auto!important;min-height:42px!important;
    font-size:14px!important;padding:8px 14px!important;flex:0 0 auto!important}
  .bsm-collector-shell .bsm-portal-section-head{padding:0 7px!important;margin:8px 0!important}
  .bsm-collector-shell .bsm-portal-section-head h3{font-size:23px!important;line-height:1.25!important;margin:0!important}
  .bsm-collector-shell .bsm-collector-filter-toolbar{margin:5px 0!important}
  .bsm-collector-shell .bsm-collector-filter-toggle{min-height:42px!important;border-radius:11px!important}
  .bsm-collector-shell .bsm-collector-sticky-building{gap:7px!important;padding:10px!important;margin:6px 0 9px!important;border-radius:13px!important}
  .bsm-collector-shell .bsm-collector-sticky-building label{gap:3px!important;font-size:12px!important}
  .bsm-collector-shell .bsm-collector-sticky-building :is(input,select){min-height:40px!important;height:40px!important;font-size:15px!important}
  .bsm-collector-shell .bsm-collector-search-submit{min-height:42px!important}
  .bsm-collector-shell .bsm-portal-panel.bsm-collector-desk{box-sizing:border-box!important;width:100%!important;
    margin:8px 0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
  .bsm-collector-shell .bsm-collector-desk .bsm-table-scroll{overflow:visible!important;width:100%!important}
  .bsm-collector-shell .bsm-subscriber-collect-table{width:100%!important;border:0!important;border-collapse:separate!important}
  .bsm-collector-shell .bsm-subscriber-collect-table tbody{display:block!important}
  .bsm-collector-shell .bsm-subscriber-collect-table tbody>tr:not(.bsm-empty){
    box-sizing:border-box!important;display:block!important;width:100%!important;
    padding:12px 13px!important;margin:0 0 8px!important;
    border:1px solid #e3e8f1!important;border-radius:14px!important;
    background:#fff!important;box-shadow:0 2px 7px rgba(15,23,42,.035)!important;
  }
  .bsm-collector-shell .bsm-subscriber-collect-table tbody>tr:nth-child(even){background:#f2f4f8!important}
  .bsm-collector-shell .bsm-subscriber-collect-table tbody>tr>td{
    box-sizing:border-box!important;width:100%!important;max-width:100%!important;
    padding:2px 0!important;margin:0!important;line-height:1.45!important;
    background:transparent!important;border:0!important;
  }
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-subscriber-cell>strong{
    font-size:19px!important;line-height:1.28!important;display:block;margin-bottom:3px!important}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-subscriber-cell>small{
    font-size:12px!important;line-height:1.4!important;margin-top:2px!important}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-subscriber-cell .bsm-badge{margin:4px 0!important}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-mobile-collect{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;
    margin:10px 0 3px!important;width:100%!important;
    padding-top:9px!important;border-top:1px solid #e2e8f0!important}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-collector-payment-field{
    gap:4px!important;margin:0!important;font-size:13px!important}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-collector-payment-field>input{
    width:100%!important;min-height:42px!important;height:42px!important;padding:7px 11px!important;
    font-size:17px!important;text-align:left!important;direction:ltr!important}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-collect-method-actions{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
    margin:2px 0 0!important;width:100%!important}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-collect-method-actions .bsm-front-btn{
    box-sizing:border-box!important;width:100%!important;min-width:0!important;
    height:43px!important;min-height:43px!important;margin:0!important;padding:7px 8px!important;
    font-size:14px!important;border-radius:10px!important}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-collector-payment-note{margin:0!important;font-size:12px!important}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-collector-payment-note summary{
    display:inline-block;list-style:none;color:#4f46e5;cursor:pointer;padding:4px 0;font-weight:750}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-collector-payment-note summary::-webkit-details-marker{display:none}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-collector-payment-note summary:before{content:'+';margin-inline-end:5px}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-collector-payment-note[open] summary:before{content:'−'}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-collector-payment-note label{margin-top:5px!important}
  .bsm-collector-shell .bsm-subscriber-collect-table :is(.bsm-subscription-cell,.bsm-amount-cell){
    display:inline-block!important;width:auto!important;max-width:100%!important;
    margin-inline-end:12px!important;font-size:12px!important}
  .bsm-collector-shell .bsm-subscriber-collect-table :is(.bsm-subscription-cell,.bsm-amount-cell):before{font-size:10px!important}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-status-cell{margin-top:2px!important}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-collector-complete{margin:4px 0!important}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-collector-mobile-fill{gap:4px!important}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-phone-combo{max-width:100%!important}
}

/* 0.6.9 - Electricity business filter panels, accessible and compact. */
.bsm-portal-shell .bsm-business-filter-toolbar{display:flex;justify-content:flex-start;direction:rtl;margin:10px 0 12px}
.bsm-portal-shell .bsm-business-filter-toggle{font:inherit;font-weight:700;display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:8px 16px;background:#4c43d6;color:#fff;border:0;border-radius:11px;cursor:pointer}
.bsm-portal-shell .bsm-business-filter-panel{display:none!important}
.bsm-portal-shell .bsm-business-filter-panel.is-open{display:block!important}
.bsm-portal-shell .bsm-business-filter-panel.bsm-table-filters.is-open{display:flex!important}
.bsm-portal-shell .bsm-business-filter-toggle:focus-visible{outline:3px solid #a5b4fc;outline-offset:3px}
@media(max-width:760px){.bsm-portal-shell .bsm-business-filter-toggle{width:100%;justify-content:center}.bsm-portal-shell .bsm-business-filter-panel.bsm-table-filters.is-open{display:block!important}}

/* v0.7.7 Prevent vertical scroll bounce at the end of billing tables.
   Keep the cloned sticky header out of document flow: toggling display used to
   change page height mid-scroll, which fought the browser's scroll anchoring. */
.bsm-sticky-table-tools{isolation:isolate;}
.bsm-sticky-header-viewport,
.bsm-sticky-header-viewport.is-visible{
  position:absolute;
  top:100%;
  inset-inline:0;
  display:block;
  height:auto;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
}
.bsm-sticky-header-viewport.is-visible{
  visibility:visible;
  opacity:1;
  pointer-events:auto;
}

/* v0.7.8 — Compact collector accordion and cash reconciliation */
.bsm-cash-session-panel{margin:12px 0 18px;padding:16px!important}
.bsm-cash-session{border:1px solid #dbe3ee;border-radius:12px;background:#fff;margin:9px 0;overflow:hidden}
.bsm-cash-session:nth-of-type(even){background:#f4f6f9}
.bsm-cash-session>summary{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:9px;cursor:pointer;padding:12px 14px;list-style:none;user-select:none}
.bsm-cash-session>summary::-webkit-details-marker{display:none}
.bsm-cash-session>summary small{font-size:12px;color:#61708b}
.bsm-cash-session[open]>summary{border-bottom:1px solid #e5eaf2}
.bsm-cash-session> :not(summary){margin:12px 14px}
.bsm-cash-session-stats{display:flex;flex-wrap:wrap;gap:10px}
.bsm-cash-session-stats span{display:flex;gap:9px;align-items:center;padding:9px 12px;border:1px solid #e4e9f2;border-radius:9px;background:#f7f9fc}
.bsm-cash-session form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}
.bsm-cash-session form label{min-width:0;display:flex;flex-direction:column;gap:6px;font-weight:700}
.bsm-cash-session form :is(input,textarea){width:100%;min-height:44px;border:1px solid #d6deea;border-radius:9px;padding:8px 11px;box-sizing:border-box}
.bsm-cash-session-actions{display:flex;gap:8px;align-items:center}
.bsm-cash-session-receipts{margin-top:10px}
.bsm-cash-session-receipts summary{cursor:pointer;font-weight:700}
@media(max-width:760px){
  .bsm-cash-session form{grid-template-columns:minmax(0,1fr)}
  .bsm-collector-shell .bsm-electric-accounts{display:flex!important;flex-direction:column;gap:6px!important}
  .bsm-collector-shell .bsm-electric-account,
  .bsm-collector-shell .bsm-subscriber-collect-table tbody>tr.bsm-compact-accordion-card{
     width:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:10px 12px!important;
     margin:0 0 5px!important;border:1px solid #e2e7f0!important;border-radius:12px!important;box-shadow:none!important;
  }
  .bsm-collector-shell .bsm-electric-account:nth-child(odd),
  .bsm-collector-shell .bsm-subscriber-collect-table tbody>tr.bsm-compact-accordion-card:nth-child(odd){background:#fff!important}
  .bsm-collector-shell .bsm-electric-account:nth-child(even),
  .bsm-collector-shell .bsm-subscriber-collect-table tbody>tr.bsm-compact-accordion-card:nth-child(even){background:#f2f4f8!important}
  .bsm-collector-shell .bsm-electric-account>header{position:relative;display:flex!important;align-items:flex-start;justify-content:space-between;padding-inline-start:28px!important;gap:8px!important;margin:0!important}
  .bsm-collector-shell .bsm-electric-account>header strong,
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-subscriber-cell strong{font-size:16px!important;line-height:1.3!important;margin:0 0 3px!important}
  .bsm-collector-shell .bsm-electric-account>header small,
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-subscriber-cell small{font-size:11px!important;line-height:1.3!important;margin:0!important}
  .bsm-collector-shell .bsm-electric-account>header .bsm-electric-due{padding:5px!important;max-width:135px;font-size:11px!important;flex:0 1 auto}
  .bsm-collector-shell .bsm-electric-account>header .bsm-electric-due strong{font-size:15px!important}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-subscriber-cell{position:relative;padding-inline-start:28px!important}
  .bsm-collector-shell .bsm-subscriber-accordion-toggle{position:absolute;left:0;top:0;z-index:2;
      width:26px;height:30px;padding:0;border:0;background:transparent;color:#24334b;
      font-size:23px;line-height:1;cursor:pointer;transform:rotate(0deg)}
  .bsm-collector-shell .bsm-accordion-open .bsm-subscriber-accordion-toggle{transform:rotate(180deg)}
  .bsm-collector-shell .bsm-electric-account.bsm-compact-accordion-card:not(.bsm-accordion-open)>:not(header){display:none!important}
  .bsm-collector-shell .bsm-compact-accordion-card:not(.bsm-accordion-open)>td:not(.bsm-subscriber-cell){display:none!important}
  .bsm-collector-shell .bsm-subscriber-collect-table .bsm-compact-accordion-card:not(.bsm-accordion-open) .bsm-subscriber-cell :is(form,details,.bsm-badge){display:none!important}
  .bsm-collector-shell .bsm-compact-accordion-card.bsm-accordion-open{box-shadow:0 3px 12px rgba(30,45,80,.08)!important}
  .bsm-collector-shell .bsm-electric-account.bsm-accordion-open>header{border-bottom:1px solid #e0e6ef;padding-bottom:8px!important;margin-bottom:8px!important}
}

@media(max-width:760px){
  .bsm-collector-shell .bsm-electric-account.bsm-compact-accordion-card:not(.bsm-accordion-open) .bsm-electric-due{display:none!important}
  .bsm-collector-shell .bsm-electric-account.bsm-compact-accordion-card:not(.bsm-accordion-open) header{min-height:42px!important;align-items:center!important}
  .bsm-collector-shell .bsm-electric-account.bsm-compact-accordion-card:not(.bsm-accordion-open) header small:last-child{display:none!important}
}

/* v0.7.9: Compact organization branch selector in the header. */
.bsm-portal-shell[dir="rtl"] .bsm-branch-dropdown{position:relative;display:block;z-index:150;min-width:0;flex:0 1 260px;direction:rtl;text-align:right}
.bsm-portal-shell[dir="rtl"] .bsm-branch-dropdown>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:7px 12px;border:1px solid #d8e1ef;border-radius:12px;background:#fff;color:#26364e;cursor:pointer;list-style:none;box-sizing:border-box}
.bsm-portal-shell[dir="rtl"] .bsm-branch-dropdown>summary::-webkit-details-marker{display:none}
.bsm-portal-shell[dir="rtl"] .bsm-branch-dropdown>summary:focus-visible{outline:2px solid #5045d4;outline-offset:2px}
.bsm-portal-shell[dir="rtl"] .bsm-branch-summary-label{font-size:12px;color:#697993;white-space:nowrap}
.bsm-portal-shell[dir="rtl"] .bsm-branch-current{font-size:13px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.bsm-portal-shell[dir="rtl"] .bsm-branch-arrow{margin-inline-start:auto;font-size:20px;line-height:1;color:#5145d6}
.bsm-portal-shell[dir="rtl"] .bsm-branch-dropdown[open] .bsm-branch-arrow{transform:rotate(180deg)}
.bsm-portal-shell[dir="rtl"] .bsm-branch-options{position:absolute;top:calc(100% + 6px);right:0;left:auto;min-width:max(100%,245px);max-width:min(360px,90vw);max-height:300px;overflow:auto;background:#fff;border:1px solid #dce3ef;border-radius:14px;box-shadow:0 16px 35px #0f172a22;padding:6px;z-index:200}
.bsm-portal-shell[dir="rtl"] .bsm-branch-option{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px;border-radius:9px;color:#25344c;text-decoration:none!important;font-weight:650;line-height:1.4;white-space:normal}
.bsm-portal-shell[dir="rtl"] .bsm-branch-option:hover,.bsm-portal-shell[dir="rtl"] .bsm-branch-option:focus{background:#eef2ff}
.bsm-portal-shell[dir="rtl"] .bsm-branch-option.is-active{background:#f0efff;color:#5045d4}
.bsm-portal-shell[dir="rtl"] .bsm-branch-check{font-weight:900}
.bsm-portal-shell[dir="rtl"] .bsm-branch-desktop{order:2;margin-inline:0 12px}
.bsm-portal-shell[dir="rtl"] .bsm-account-menu{order:3}
.bsm-portal-shell[dir="rtl"] .bsm-branch-mobile{display:none}
@media(max-width:760px){
 .bsm-portal-shell[dir="rtl"] .bsm-branch-desktop{display:none}
 .bsm-portal-shell[dir="rtl"] .bsm-mobile-header .bsm-branch-mobile{display:block;flex:1 1 auto;max-width:46vw}
 .bsm-portal-shell[dir="rtl"] .bsm-mobile-header .bsm-mobile-logo{flex:0 0 auto;max-width:25%}
 .bsm-portal-shell[dir="rtl"] .bsm-mobile-header .bsm-branch-dropdown>summary{padding:6px 8px;min-height:38px}
 .bsm-portal-shell[dir="rtl"] .bsm-mobile-header .bsm-branch-summary-label{display:none}
 .bsm-portal-shell[dir="rtl"] .bsm-mobile-header .bsm-branch-current{font-size:12px}
 .bsm-portal-shell[dir="rtl"] .bsm-mobile-header .bsm-branch-options{right:0;min-width:220px}
}

/* v0.8.0: Collector area choices stay directly below their selector,
   within the form's RTL flow (no detached/fixed-position popover). */
.bsm-portal-form .bsm-collector-area-picker,
.bsm-portal-form .bsm-collector-area-picker details {
  position: relative; width: 100%; min-width: 0; overflow: visible;
}
.bsm-portal-form .bsm-collector-area-picker .bsm-collector-area-menu {
  position: static !important; inset: auto !important; top: auto !important;
  left: auto !important; right: auto !important; bottom: auto !important;
  width: 100% !important; max-width: 100% !important; max-height: none !important;
  margin-top: 6px; box-sizing: border-box; overflow: visible;
  z-index: auto; direction: rtl;
}
.bsm-portal-form .bsm-collector-area-picker .bsm-collector-area-options {
  max-height: 220px; overflow-y: auto; overflow-x: hidden;
}
.bsm-portal-form .bsm-collector-area-picker .bsm-collector-area-menu[hidden] { display: none !important; }
@media (max-width: 767px) {
  .bsm-portal-form .bsm-collector-area-picker .bsm-collector-area-menu {
    width: 100% !important; padding: 8px;
  }
}

/* v0.8.1 — mobile electricity collector: sticky hamburger + collapsed subscriber list. */
@media(max-width:760px){
 .bsm-collector-shell .bsm-electricity .bsm-mobile-filter-dock{position:sticky!important;top:env(safe-area-inset-top, 0px);z-index:990!important;margin:8px 0 12px!important;padding:6px!important;background:rgba(255,255,255,.98)!important;border:1px solid #d9e1ef!important;border-radius:12px!important;box-shadow:0 5px 18px rgba(15,23,42,.10)!important;isolation:isolate}
 .bsm-collector-shell .bsm-electricity .bsm-mobile-filter-dock .bsm-collector-filter-toolbar{display:block!important;margin:0!important}
 .bsm-collector-shell .bsm-electricity .bsm-mobile-filter-dock .bsm-collector-filter-toggle{display:flex!important;min-height:43px!important;gap:10px!important;justify-content:center!important;width:100%!important;border-radius:9px!important;box-shadow:none!important}
 .bsm-collector-shell .bsm-electricity .bsm-mobile-filter-dock .bsm-collector-sticky-building{display:none!important;position:static!important;box-shadow:none!important;margin:6px 0!important;border:0!important;padding:6px!important;max-height:min(52vh,430px);overflow:auto!important}
 .bsm-collector-shell .bsm-electricity .bsm-mobile-filter-dock.bsm-mobile-filters-open .bsm-collector-sticky-building{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 .bsm-collector-shell .bsm-electricity .bsm-mobile-filter-dock .bsm-collector-filter-panel{display:none!important;position:static!important;max-height:42vh;overflow-y:auto!important;box-shadow:none!important;margin:6px 0!important}
 .bsm-collector-shell .bsm-electricity .bsm-mobile-filter-dock.bsm-mobile-filters-open .bsm-collector-filter-panel.is-open{display:block!important}
 .bsm-collector-shell .bsm-electricity .bsm-mobile-filter-dock .bsm-collector-visible-search{width:100%!important}
 .bsm-collector-shell .bsm-electricity .bsm-electric-accounts{margin-top:10px!important}
 .bsm-collector-shell .bsm-electricity .bsm-electric-account.bsm-compact-accordion-card:not(.bsm-accordion-open){padding:9px 12px!important}
 .bsm-collector-shell .bsm-electricity .bsm-electric-account.bsm-compact-accordion-card>header{cursor:pointer;min-height:44px}
 .bsm-collector-shell .bsm-electricity .bsm-electric-account.bsm-compact-accordion-card>header:focus-visible{outline:2px solid #4f46e5;outline-offset:3px;border-radius:8px}
}

@media(max-width:760px){
 .bsm-collector-shell .bsm-electricity .bsm-mobile-filter-dock .bsm-mobile-more-filters{display:none!important;width:100%;min-height:38px;border:1px solid #c7d2fe;background:#fff;border-radius:9px;color:#4338ca;font:inherit;font-size:13px;font-weight:700;cursor:pointer;margin:4px 0}
 .bsm-collector-shell .bsm-electricity .bsm-mobile-filter-dock.bsm-mobile-filters-open .bsm-mobile-more-filters{display:block!important}
}
