#ab_base{
    height:100%;
}

:root {
  --ab-field-help-surface: #ffffff;
  --ab-field-help-border: rgba(15, 23, 42, 0.12);
  --ab-field-help-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  --ab-field-help-title: #0f172a;
  --ab-field-help-body: #475569;
  --ab-field-help-accent: #1d4ed8;
}

  #vendor-select{
    margin-left: 10px;
    height:38px
  }

  .lm_content,
.lm_item_container {
  overflow: visible !important;
}

sl-select::part(panel) {
  z-index: 10000; /* ensure dropdown stays on top */
}

sl-dropdown,
sl-select::part(base),
sl-overlay {
  z-index: 10000;
}

#ab_propertiesPanel{
  padding: 10px;
  overflow-y: scroll;
  height: 100%;
}

#ab_centerArea{
  height: 100%;;
}

#ab_rightToolbar {
  display: grid;
  grid-template-columns: repeat(4, 34px);
  align-content: start;
  justify-content: center;
  gap: 8px;
  padding: 8px 8px 6px;
  height: 100%;
  box-sizing: border-box;
  overflow: visible;
}

#ab_rightToolbar .ab-fieldHelpTooltip {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: stretch;
  justify-content: stretch;
  box-sizing: border-box;
}

#ab_rightToolbar .applicationBuilderBtn {
  display: flex;
  width: 34px;
  height: 34px;
  margin: 0;
  align-items: stretch;
  justify-content: stretch;
  box-sizing: border-box;
}

#ab_rightToolbar .applicationBuilderBtn::part(base) {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  height: 34px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #ffffff;
  color: #475569;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
  transition: border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, background-color 140ms ease;
}

#ab_rightToolbar .applicationBuilderBtn::part(label) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 100%;
  height: 100%;
  line-height: 1;
}

#ab_rightToolbar .ab-fieldToolIcon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
  line-height: 1;
  box-sizing: border-box;
}

#ab_rightToolbar .applicationBuilderBtn::part(base):hover,
#ab_rightToolbar .applicationBuilderBtn::part(base):focus-visible {
  background: #f8fafc;
  border-color: rgba(37, 99, 235, 0.26);
  color: #1d4ed8;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.16);
}

#ab_rightToolbar .ab-fieldToolIcon svg,
#ab_rightToolbar .ab-fieldToolIcon i {
  width: 14px;
  height: 14px;
  font-size: 14px;
  display: block;
  margin: 0;
  line-height: 1;
  vertical-align: top;
}

#ab_rightToolbar .ab-fieldToolIcon svg {
  max-width: 14px;
  max-height: 14px;
  flex: 0 0 14px;
}

#ab_rightToolbar .ab-fieldToolIcon i::before {
  display: block;
  line-height: 1;
}

#ab_rightToolbar .ab-fieldHelpTooltip::part(body) {
  max-width: none;
  padding: 0;
  background: var(--ab-field-help-surface);
  border: 1px solid var(--ab-field-help-border);
  border-radius: 16px;
  box-shadow: var(--ab-field-help-shadow);
  color: var(--ab-field-help-title);
}

#ab_rightToolbar .ab-fieldHelpTooltip::part(arrow) {
  background: var(--ab-field-help-surface);
  border: 1px solid var(--ab-field-help-border);
}

.ab-fieldHelpCard {
  width: min(320px, calc(100vw - 32px));
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}

.ab-fieldHelpTitle {
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ab-field-help-title);
}

.ab-fieldHelpDescription {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ab-field-help-body);
}

.ab-fieldHelpExamples {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  font-size: 0.84rem;
  line-height: 1.45;
}

.ab-fieldHelpExamplesLabel {
  font-weight: 700;
  color: var(--ab-field-help-accent);
}

.ab-fieldHelpExamplesText {
  color: var(--ab-field-help-title);
}

.fieldType{
  margin-left: 10px;
  margin-right: 10px;
      font-size: 12px;
      line-height: 24px;
      color:rgb(118, 118, 118);
}

.fieldToolbar {
    background: #e1e1e1;
    height: 25px;
    position: absolute;
    right: 0px;
    top: 0px;
    border-bottom-left-radius: 5px;
    padding-left: 5px;
    padding-right: 5px;
}
  .field_icon{
      font-size: 16px;
      line-height: 24px;
      height:25px;
      width:25px;
      color:rgb(118, 118, 118);
  }

  sl-icon-button::part(base) {
  border-radius: 6px;
  padding: 0;
  margin-top: 5px;
}

.fieldTypeIcon{
  color:rgb(118, 118, 118);
}

:root.sl-theme-dark #ab_base {
  background: var(--mm-dark-bg, #0b1120);
}

:root.sl-theme-dark #ab_base .lm_goldenlayout,
:root.sl-theme-dark #ab_base .lm_row,
:root.sl-theme-dark #ab_base .lm_stack,
:root.sl-theme-dark #ab_base .lm_items {
  background: transparent;
}

:root.sl-theme-dark #ab_base .lm_header {
  background: #1C2530;
  border-bottom: 1px solid var(--mm-dark-border-soft, rgba(148, 163, 184, 0.12));
}

:root.sl-theme-dark #ab_base .lm_tab {
  background: #1C2530;
  color: var(--mm-dark-muted, #94a3b8);
  border: 1px solid transparent;
}

:root.sl-theme-dark #ab_base .lm_tab.lm_active,
:root.sl-theme-dark #ab_base .lm_tab:hover {
  background: #273241;
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark #ab_base .lm_title {
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark #ab_base .lm_content,
:root.sl-theme-dark #ab_base .lm_item,
:root.sl-theme-dark #ab_base .lm_item_container {
  background: var(--mm-dark-surface, #0f172a);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  box-shadow: inset 0 0 0 1px rgba(2, 6, 23, 0.3);
}

:root.sl-theme-dark #ab_topToolbar {
  background: var(--mm-dark-surface-2, #111827);
  border-bottom: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark #ab_topToolbar .text,
:root.sl-theme-dark #ab_topToolbar h7 {
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark #ab_topToolbar sl-divider {
  --color: rgba(148, 163, 184, 0.35) !important;
}

:root.sl-theme-dark #ab_topToolbar sl-input::part(base),
:root.sl-theme-dark #ab_topToolbar sl-select::part(combobox) {
  background: var(--mm-dark-surface-3, #1f2937);
  color: var(--mm-dark-text, #f8fafc);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark #ab_topToolbar .shadow_select {
  background: var(--mm-dark-surface-3, #1f2937);
  color: var(--mm-dark-text, #f8fafc);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .applicationToolbarbtn {
  color: var(--mm-dark-text, #f8fafc);
  background: #1C2530;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
}

:root.sl-theme-dark .applicationToolbarbtn:hover {
  color: #ffffff !important;
  background: #273241;
}

:root.sl-theme-dark #ab_rightToolbar {
  background: transparent;
}

:root.sl-theme-dark #ab_rightToolbar .applicationBuilderBtn::part(base) {
  background: #1c2530;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f8fafc;
  box-shadow: 0 1px 1px rgba(2, 6, 23, 0.28);
}

:root.sl-theme-dark #ab_rightToolbar .applicationBuilderBtn::part(base):hover {
  background: #273241;
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.16);
}

:root.sl-theme-dark {
  --ab-field-help-surface: #111827;
  --ab-field-help-border: rgba(148, 163, 184, 0.26);
  --ab-field-help-shadow: 0 18px 38px rgba(2, 6, 23, 0.45);
  --ab-field-help-title: #f8fafc;
  --ab-field-help-body: #cbd5e1;
  --ab-field-help-accent: #7dd3fc;
}

:root.sl-theme-dark #ab_propertiesPanel {
  background: var(--mm-dark-surface, #0f172a);
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark #ab_propertiesPanel sl-input::part(base),
:root.sl-theme-dark #ab_propertiesPanel sl-textarea::part(base),
:root.sl-theme-dark #ab_propertiesPanel sl-select::part(combobox) {
  background: var(--mm-dark-surface-2, #111827);
  color: var(--mm-dark-text, #f8fafc);
  border: 1px solid var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark #ab_centerArea {
  background: var(--mm-dark-surface, #0f172a);
}

:root.sl-theme-dark #sortableList {
  background: var(--mm-dark-surface-2, #111827);
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

:root.sl-theme-dark .sortable-item {
  background: var(--mm-dark-surface, #0f172a);
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark .sortable-item:hover {
  background: rgba(148, 163, 184, 0.16);
}

:root.sl-theme-dark .sortable-ghost {
  background-color: rgba(148, 163, 184, 0.2);
}

:root.sl-theme-dark .fieldToolbar {
  background: #1C2530;
}

:root.sl-theme-dark .fieldType,
:root.sl-theme-dark .fieldTypeIcon,
:root.sl-theme-dark .field_icon {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .field_icon::part(base) {
  color: inherit;
}

:root.sl-theme-dark .ql-editor {
  background-color: var(--mm-dark-surface-2, #111827);
  color: var(--mm-dark-text, #f8fafc);
}
