/* =====================================================
   BIZ EVENT PICKER — bep-*
   Flat checkbox list + Select All/Clear All, shared by the biz
   interceptor Create wizard step and Edit wizard tab.
   ===================================================== */

.bep-wrap { display: flex; flex-direction: column; height: 100%; min-height: 0; }

/* ── Toolbar ── */
.bep-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 2px 14px; flex-shrink: 0;
}
.bep-count { font-size: 13px; font-weight: 600; color: #555; }
.bep-toolbar-spacer { flex: 1 1 auto; }

.bep-action-btn {
  height: 32px !important; min-height: 32px !important;
  border-radius: 20px !important; padding: 0 14px !important;
  font-size: 12px !important; font-weight: 600 !important;
  text-transform: none !important;
  display: inline-flex !important; align-items: center !important; gap: 5px !important;
  margin: 0 0 0 8px !important; white-space: nowrap !important;
}
.bep-action-btn md-icon { font-size: 16px !important; width: 16px !important; height: 16px !important; color: inherit !important; margin: 0 !important; }

.bep-action-btn--green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important; box-shadow: 0 2px 6px rgba(16,185,129,0.3) !important;
}
.bep-action-btn--green[disabled] { opacity: 0.4 !important; box-shadow: none !important; }

.bep-action-btn--red {
  background: white !important; color: #e05252 !important;
  border: 2px solid #fca5a5 !important; box-shadow: none !important;
}
.bep-action-btn--red:hover:not([disabled]) { background: #fff1f1 !important; border-color: #e05252 !important; }
.bep-action-btn--red[disabled]             { opacity: 0.4 !important; cursor: not-allowed !important; }

/* ── List ── */
.bep-list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  border: 1px solid #e5e7eb; border-radius: 8px;
  background: #fff;
}

.bep-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; cursor: pointer;
  border-bottom: 1px solid #f0f1f5;
  transition: background 0.15s ease;
}
.bep-row:last-child { border-bottom: none; }
.bep-row:hover { background: #f7f8fc; }
.bep-row--disabled-event { opacity: 0.72; }

/* Custom checkbox — same square-check idiom as the app's own
   .apd-checkbox-box (Agent Panel bulk-select) / .rep-checkbox
   (role picker), native input for real click/keyboard semantics,
   visually hidden in favor of the styled span. */
.bep-checkbox-wrap { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; margin-top: 2px; }
.bep-checkbox-native { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.bep-checkbox-box {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2px solid #ccc; border-radius: 4px;
  background: white; transition: all 0.15s ease;
}
.bep-checkbox-box md-icon {
  font-size: 14px !important; width: 14px !important; height: 14px !important;
  min-width: 14px !important; line-height: 14px !important;
  color: white !important; margin: 0 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  flex-shrink: 0 !important;
}
.bep-checkbox-box--checked {
  background: #667eea; border-color: #667eea;
  box-shadow: 0 2px 6px rgba(102,126,234,0.35);
}
.bep-row:hover .bep-checkbox-box:not(.bep-checkbox-box--checked) { border-color: #667eea; }

.bep-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.bep-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bep-name { font-size: 13.5px; font-weight: 600; color: #222; }
.bep-desc { font-size: 12px; color: #757575; line-height: 1.4; }

.bep-disabled-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
  color: #9a6b00; background: rgba(217,119,6,0.12);
  border: 1px solid rgba(217,119,6,0.3);
  border-radius: 999px; padding: 1px 8px;
}

/* Informational only — never blocks selecting the row, just explains why
   it isn't pre-checked by default (see CreateBizInterceptorDialogController's
   capturedElsewhereIds). Distinct (info blue) from .bep-disabled-tag's
   amber so the two read as different kinds of flags. */
.bep-captured-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.2px;
  color: #2563eb; background: rgba(37,99,235,0.10);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: 999px; padding: 1px 8px;
  white-space: nowrap;
}

/* ── Empty state — same gradient-circle card pattern as the biz
   interceptors tab's own empty states (.bi-empty-*), for visual
   consistency across the app rather than this component's previous
   one-off dashed-box treatment. ── */
.bep-empty-wrapper {
  flex: 1 1 auto; min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; background: white;
}
.bep-empty-card { display: flex; flex-direction: column; align-items: center; max-width: 380px; text-align: center; }
.bep-empty-icon-wrap {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(102,126,234,0.08), #f5f3ff);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.bep-empty-icon { font-size: 38px !important; width: 38px !important; height: 38px !important; color: #667eea !important; display: flex !important; align-items: center !important; justify-content: center !important; }
.bep-empty-title { font-size: 16px; font-weight: 700; color: #333; margin: 0 0 8px; }
.bep-empty-text  { font-size: 12.5px; color: #666; line-height: 1.5; margin: 0; }
