.cbk-export-pdf-btn,
.cbk-select-editor-btn {
  border-radius: 6px !important;
}

.cbk-select-editor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  min-height: 34px;
  margin-left: 6px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  vertical-align: middle;
}

.cbk-select-editor-btn:hover {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.cbk-select-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, .42);
}

.cbk-select-editor-dialog {
  width: min(560px, 100%);
  max-height: min(680px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.cbk-select-editor-dialog *,
.cbk-select-editor-dialog *::before,
.cbk-select-editor-dialog *::after {
  box-sizing: border-box;
}

.cbk-select-editor-head,
.cbk-select-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.cbk-select-editor-head b,
.cbk-select-editor-head span {
  display: block;
}

.cbk-select-editor-head span {
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
}

.cbk-select-editor-head button,
.cbk-select-editor-actions button,
.cbk-select-editor-add button,
.cbk-select-editor-row button {
  border: 1px solid hsl(var(--border));
  border-radius: 6px;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cbk-select-editor-actions {
  border-top: 1px solid hsl(var(--border));
  border-bottom: 0;
  justify-content: flex-end;
}

.cbk-select-editor-actions button,
.cbk-select-editor-add button {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.cbk-select-editor-list {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  background: #ffffff;
}

.cbk-select-editor-row,
.cbk-select-editor-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  background: #ffffff;
}

.cbk-select-editor-row input,
.cbk-select-editor-add input {
  min-width: 0;
  border: 1px solid hsl(var(--input));
  border-radius: 6px;
  padding: 8px 10px;
  color: #111827;
  background: #f8fafc;
}

.cbk-select-editor-add {
  padding: 0 16px 14px;
  background: #ffffff;
}

.cbk-runtime-level-divider {
  border-top-color: oklch(0.85 0.16 88.65) !important;
}

[role="dialog"],
[data-radix-dialog-content],
[data-slot="dialog-content"],
[data-slot="popover-content"],
[data-slot="select-content"],
[data-slot="dropdown-menu-content"],
[data-radix-popper-content-wrapper] > * {
  background-color: #ffffff !important;
  color: #111827 !important;
  border-color: #e2e8f0 !important;
  backdrop-filter: none !important;
}

[role="dialog"] form,
[role="dialog"] section,
[role="dialog"] article,
[role="dialog"] .bg-card,
[data-radix-dialog-content] form,
[data-radix-dialog-content] section,
[data-radix-dialog-content] article,
[data-radix-dialog-content] .bg-card {
  background-color: #ffffff !important;
}

[role="dialog"] input,
[role="dialog"] textarea,
[role="dialog"] select,
[data-radix-dialog-content] input,
[data-radix-dialog-content] textarea,
[data-radix-dialog-content] select {
  background-color: #f8fafc !important;
  color: #111827 !important;
  border-color: #cbd5e1 !important;
}
