#vb_layoutWrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

#layoutContainer {
  width: 100%;
  height: 100%;
}

#vb_loading_mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 9999;
}

#vb_loading_mask[hidden] {
  display: none;
}

.vb-loading-inner {
  display: flex;
  width: 100px;
  height: 100px;
  background-color: white;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
}

  .lm_close_tab {
    display: none !important;
  }

  .iconBox {
    width: 40px;
    height: 40px;
    margin: 5px;
    padding: 5px;
  }

  #mapBuilder_iconBox{
    width: 30px;
    height: 30px;
    margin-left: 10px;
    margin-top: 5px;
}
#mapBuilder_icon{
  width:100%;
  height:100%;
}
#mapBuilder_name{
  margin-left: 10px;
  font-weight: 900;

}

  .iconBox:hover {
    fill: var(--affiliBlue);
    cursor: pointer;
  }
  .buttonBox{
    height:100%;
    flex-wrap: wrap;
    overflow-y: auto;
  }

  #canvas {
	background-color: white;
	width: 100%;
	height: 100%;
}

.iconBoxSelected {
  background-color: #CCCCCC !important;
}

.smallToolBtn {
  width: 30px;
  height: 30px;
  font-size: 25px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 5px;
  margin-bottom: auto;
  margin-left: 5px;
  display: flex;
  color: var(--textColor);
  border: none;
  background: none;
}

.smallToolBtn:hover {
  color: var(--affiliBlue);
}

.smallToolBtnIcon{
  font-size: 20px;
  line-height: normal;
  margin: auto;
}

.smallToolBtn:disabled {
	color: #ccd1d8;
	fill: #ccd1d8;
	cursor: auto;
}

.vb_objectListItem{
  cursor: pointer;
}

.obj_id{
  display: none;
}

#vb_list{
  margin-left: 10px;
  margin-right: 10px;
  list-style-type: none;
}

#vb_searchInput{
  margin: 10px;
}

.vb_objectListItem:hover{
  background-color: var(--affiliBlue);
  color: white;
}

.vb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  background-color: var(--affiliBlue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.vb-btn:hover {
  background-color: #0e5ec7;
}

.vb-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vb-btn-secondary {
  background-color: transparent;
  color: var(--textColor);
  border: 1px solid #d1d5db;
}

.vb-btn-secondary:hover {
  background-color: #f3f4f6;
}

.vb-btn-danger {
  background-color: #dc2626;
}

.vb-btn-danger:hover {
  background-color: #b91c1c;
}

.zone-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.zone-panel__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.zone-panel__list {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background-color: #fff;
  padding: 4px;
}

.zone-panel__empty {
  padding: 16px;
  text-align: center;
  color: #6b7280;
  font-size: 12px;
}

.zone-panel__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.zone-panel__item:hover {
  background-color: #eff6ff;
}

.zone-panel__item--active {
  background-color: var(--affiliBlue);
  color: #fff;
}

.zone-panel__itemColor {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.2);
  margin-right: 8px;
  flex-shrink: 0;
}

.zone-panel__itemMain {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.zone-panel__itemName {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zone-panel__itemButtons {
  display: flex;
  gap: 6px;
}

.zone-panel__itemButton {
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  font-size: 14px;
  border-radius: 4px;
}

.zone-panel__itemButton:hover {
  background-color: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.zone-panel__itemButton--danger {
  color: #dc2626;
}

.zone-panel__itemButton--danger:hover {
  color: #b91c1c;
  background-color: rgba(220, 38, 38, 0.12);
}

.zone-panel__form {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zone-panel__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.zone-panel__input {
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 12px;
}

.zone-panel__field--color {
  flex-direction: column;
}

.zone-panel__field--color .zone-panel__input--color {
  width: 60px;
  padding: 0;
  height: 32px;
}

.zone-panel__field--color .zone-panel__input {
  width: 100%;
}

.zone-panel__controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.zone-panel__hint {
  font-size: 11px;
  color: #6b7280;
  margin: 0;
}

:root.sl-theme-dark #layoutContainer {
  background: var(--mm-dark-bg, #0b1120);
  --textColor: #e2e8f0;
  --border-color: rgba(148, 163, 184, 0.2);
}

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

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

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

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

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

:root.sl-theme-dark #layoutContainer .lm_content,
:root.sl-theme-dark #layoutContainer .lm_item,
:root.sl-theme-dark #layoutContainer .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 #layoutContainer .lm_splitter {
  background: rgba(148, 163, 184, 0.12);
}

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

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

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

:root.sl-theme-dark #mapBuilder_iconBox {
  border: 1px solid var(--mm-dark-border-soft, rgba(148, 163, 184, 0.12));
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.08);
}

:root.sl-theme-dark .separator {
  width: 1px;
  align-self: stretch;
  background: rgba(148, 163, 184, 0.2);
}

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

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

:root.sl-theme-dark .iconBoxSelected {
  background-color: #1C2530 !important;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

:root.sl-theme-dark .buttonBox {
  background: var(--mm-dark-surface-2, #111827);
}

:root.sl-theme-dark .accordion-content {
  background: transparent;
}

:root.sl-theme-dark .iconBox {
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.6);
}

:root.sl-theme-dark .iconBox:hover {
  border-color: rgba(148, 163, 184, 0.35);
}

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

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

:root.sl-theme-dark #canvasObjects,
:root.sl-theme-dark #vb_list {
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark #vb_searchInput {
  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));
  border-radius: 6px;
}

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

:root.sl-theme-dark .vb_objectListItem {
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark .vb_objectListItem:hover {
  background-color: rgba(148, 163, 184, 0.16);
  color: var(--mm-dark-text, #f8fafc);
}

:root.sl-theme-dark .vb-btn {
  background-color: #1C2530;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

:root.sl-theme-dark .vb-btn:hover {
  background-color: #273241;
}

:root.sl-theme-dark .vb-btn-secondary {
  background-color: transparent;
  color: var(--mm-dark-body, #cbd5e1);
  border-color: rgba(148, 163, 184, 0.35);
}

:root.sl-theme-dark .vb-btn-secondary:hover {
  background-color: rgba(148, 163, 184, 0.12);
}

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

:root.sl-theme-dark .zone-panel__empty,
:root.sl-theme-dark .zone-panel__hint {
  color: var(--mm-dark-muted, #94a3b8);
}

:root.sl-theme-dark .zone-panel__item {
  color: var(--mm-dark-body, #cbd5e1);
}

:root.sl-theme-dark .zone-panel__item:hover {
  background-color: rgba(148, 163, 184, 0.12);
}

:root.sl-theme-dark .zone-panel__item--active {
  background-color: #1C2530;
  color: #f8fafc;
}

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

:root.sl-theme-dark .zone-panel__itemButton:hover {
  background-color: rgba(148, 163, 184, 0.12);
  color: #f8fafc;
}

:root.sl-theme-dark .zone-panel__itemButton--danger,
:root.sl-theme-dark .zone-panel__itemButton--danger:hover {
  color: #f87171;
}

:root.sl-theme-dark .zone-panel__input {
  background-color: var(--mm-dark-surface, #0f172a);
  color: var(--mm-dark-text, #f8fafc);
  border-color: var(--mm-dark-border, rgba(148, 163, 184, 0.2));
}

.toolbar_shape{
  fill:#6B6B6B;
}
