/* ──────────────────────────────────────────────────────────────────
 *  Bulk team-paste overlay — checkboxes, banner, modal, toast.
 *  Paired with public/calendar-bulk-team-overlay.js.
 *
 *  Visually distinct from the SPA's amber "CLIPBOARD ARMED" banner
 *  (rgba(255,184,0,.1)) — uses violet so the two workflows are
 *  unambiguously separate.
 * ────────────────────────────────────────────────────────────────── */

/* ── Row checkboxes ────────────────────────────────────────────── */
.oss-bt-th-check,
.oss-bt-td-check {
  width: 28px;
  text-align: center;
  padding: 6px 4px;
}
.oss-bt-row-check,
.oss-bt-select-all {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: #8b5cf6;
}

/* ── Per-row Copy button ───────────────────────────────────────── */
.oss-bt-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 24px;
  margin-right: 4px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid #8b5cf6;
  color: #8b5cf6;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  transition: background 0.1s ease;
}
.oss-bt-copy-btn:hover  { background: rgba(139, 92, 246, 0.28); }
.oss-bt-copy-btn:active { background: rgba(139, 92, 246, 0.45); }

/* ── Banner ────────────────────────────────────────────────────── */
.oss-bt-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px 14px;
  background: rgba(139, 92, 246, 0.10);
  border: 1px solid #8b5cf6;
  border-radius: 6px;
  color: #c4b5fd;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.oss-bt-banner-icon {
  font-size: 1.1rem;
  color: #8b5cf6;
  flex-shrink: 0;
}
.oss-bt-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.oss-bt-banner-label {
  color: #a78bfa;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.72rem;
}
.oss-bt-banner-source {
  color: #ddd6fe;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oss-bt-banner-paste {
  background: #8b5cf6;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.1s ease, opacity 0.1s ease;
}
.oss-bt-banner-paste:hover:not(:disabled) { background: #7c3aed; }
.oss-bt-banner-paste:disabled {
  background: #4c3782;
  color: #a5a5b5;
  cursor: not-allowed;
  opacity: 0.6;
}
.oss-bt-banner-clear {
  background: none;
  border: none;
  color: #a78bfa;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  padding: 4px 6px;
  line-height: 1;
}
.oss-bt-banner-clear:hover { color: #ddd6fe; }

/* ── Modal ─────────────────────────────────────────────────────── */
.oss-bt-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.oss-bt-modal-backdrop.oss-bt-modal-shown { opacity: 1; }

.oss-bt-modal {
  background: #121721;
  border: 1px solid #2A3D58;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
  width: min(640px, 92vw);
  max-height: 86vh;
  overflow: auto;
  padding: 20px 24px;
  color: #e5e7eb;
  font-family: 'JetBrains Mono', monospace;
}
.oss-bt-modal-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #c4b5fd;
  letter-spacing: 0.5px;
}
.oss-bt-modal-source {
  margin-bottom: 14px;
  padding: 6px 10px;
  background: rgba(139, 92, 246, 0.1);
  border-left: 3px solid #8b5cf6;
  border-radius: 0 4px 4px 0;
  color: #ddd6fe;
  font-size: 0.78rem;
  font-weight: 600;
}
.oss-bt-diff-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  max-height: 50vh;
  overflow: auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #1F2D42;
  border-radius: 6px;
}
.oss-bt-diff-list li {
  padding: 8px 12px;
  border-bottom: 1px solid #1F2D42;
}
.oss-bt-diff-list li:last-child { border-bottom: none; }
.oss-bt-diff-title {
  color: #f3f4f6;
  font-weight: 700;
  font-size: 0.82rem;
}
.oss-bt-diff-cancelled {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  background: #7f1d1d;
  color: #fecaca;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.oss-bt-diff-no-change {
  color: #6b7280;
  font-style: italic;
  font-size: 0.75rem;
  margin-left: 6px;
}
.oss-bt-diff-warn {
  color: #f59e0b;
  font-style: italic;
  font-size: 0.75rem;
  margin-left: 6px;
}
.oss-bt-diff-row {
  margin-top: 4px;
  padding-left: 14px;
  font-size: 0.75rem;
  color: #cbd5e1;
}
.oss-bt-diff-label {
  display: inline-block;
  min-width: 78px;
  color: #94a3b8;
  font-weight: 600;
}
.oss-bt-diff-from {
  color: #f87171;
  text-decoration: line-through;
  text-decoration-color: #7f1d1d;
}
.oss-bt-diff-to {
  color: #4ade80;
  font-weight: 700;
}
.oss-bt-cancelled-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  font-size: 0.78rem;
  color: #fecaca;
  cursor: pointer;
}
.oss-bt-cancelled-opt input { accent-color: #ef4444; cursor: pointer; }
.oss-bt-progress {
  min-height: 22px;
  margin: 8px 0 14px;
  padding: 6px 10px;
  background: rgba(139, 92, 246, 0.08);
  border-radius: 4px;
  font-size: 0.78rem;
  color: #c4b5fd;
}
.oss-bt-progress:empty { display: none; }
.oss-bt-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.oss-bt-modal-cancel,
.oss-bt-modal-confirm {
  padding: 8px 18px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: background 0.1s ease, opacity 0.1s ease;
}
.oss-bt-modal-cancel {
  background: transparent;
  border: 1px solid #4a6480;
  color: #cbd5e1;
}
.oss-bt-modal-cancel:hover:not(:disabled) { background: rgba(74, 100, 128, 0.2); }
.oss-bt-modal-confirm {
  background: #8b5cf6;
  border: 1px solid #8b5cf6;
  color: #fff;
}
.oss-bt-modal-confirm:hover:not(:disabled) { background: #7c3aed; }
.oss-bt-modal-confirm:disabled,
.oss-bt-modal-cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Toast ─────────────────────────────────────────────────────── */
.oss-bt-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 10001;
  padding: 10px 18px;
  background: #1f2937;
  border: 1px solid #8b5cf6;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  color: #c4b5fd;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.oss-bt-toast.oss-bt-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
