#room-customizer-root>.container.py-4 {
  padding: 0;
}

#room-customizer-root #designer-area {
  position: relative;
  isolation: isolate;
  min-height: 600px;
  background: var(--nova-bg, #f4f7fb);
  border-radius: 12px;
  margin: 24px 0 16px 0;
  box-shadow: 0 2px 10px rgba(67, 94, 151, 0.05);
  border: 1px solid #e2e8f0;
  min-width: 100%;
  max-width: 100%;
  overflow: auto;
}

#room-customizer-root #connection-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  /* entscheidend für Sichtbarkeit */
}

#room-customizer-root .room-node {
  position: absolute;
  width: 210px;
  height: 150px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 2px 12px #0001;
  border: 2px solid #adc5f6;
  padding: 8px;
  text-align: center;
  z-index: 10;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: move;
  user-select: none;
}

#room-customizer-root .room-node:last-of-type {
  border-color: var(--e-global-color-primary);
  border-width: 3px;
}

#room-customizer-root .room-node .entrance-badge {
  transition: all .3s ease-in-out;
  opacity: 0;
  z-index: 99;
  visibility: hidden;
  pointer-events: none;
}

/* #room-customizer-root .room-node:hover .entrance-badge {
	opacity: 1;
	visibility: visible;
} */
#room-customizer-root .products-list {
  transition: all .3s ease-in-out;
  font-size: 15px;
  overflow: hidden;
  height: 85px;
  position: absolute;
  z-index: 10;
}

#room-customizer-root .products-list:hover {
  z-index: 100;
  overflow: visible;
  height: fit-content;
}

#room-customizer-root .products-list .product-badge {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 190px;
  display: block;
}

#room-customizer-root .products-list .product-badge>span.badge {
  display: none;
}

#room-customizer-root .room-header {
  font-weight: bold;
  font-size: 1.06em;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  padding-right: 10px;
  padding-left: 10px;
}

#room-customizer-root .room-header.ession-header {
  margin-top: 0 !important;
}

#room-customizer-root .room-title {
  width: 135px;
  /*110px;*/
  hyphens: auto;
  line-height: 110%;
  font-size: 17px;
}

#room-customizer-root .room-icon {
  font-size: 22px;
  padding: 0;
  display: none !important;
  /* new */
}

#room-customizer-root .edit-btn {
  background: none;
  border: none;
  font-size: 1.2em;
  color: #3c74be;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 35px;
  border-radius: 100px;
}

#room-customizer-root .edit-btn:hover {
  color: var(--e-global-color-primary, #f39000);
}

#room-customizer-root .exit-btn {
  position: absolute;
  width: 36px;
  height: 36px;
  color: #000;
  border-radius: 100%;
  border: 2px solid #333;
  font-size: 1.23em;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 12;
}

#room-customizer-root .exit-btn:active,
#room-customizer-root .exit-btn:hover {
  background: #d2e5fd;
}

#room-customizer-root .exit-btn span,
#room-customizer-root .exit-btn img.emoji {
  color: #000000 !important;
  filter: brightness(0) !important;
}

/* Connected Fake Session Node (styled like a room node) */
#room-customizer-root .room-node.session-node {
  width: 210px;
  height: 150px;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid #e28743;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(226, 135, 67, 0.25);
  padding: 0;
  overflow: hidden;
  text-align: left;
  z-index: 15;
  cursor: move;
  user-select: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#room-customizer-root .room-node.session-node:hover {
  border-color: #f39000;
  box-shadow: 0 6px 22px rgba(243, 144, 0, 0.4);
}

#room-customizer-root .room-node.session-node .session-header {
  background: var(--e-global-color-primary, #f39000);
  color: #ffffff;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

#room-customizer-root .room-node.session-node .session-header {
  margin-top: 0 !important;
}

#room-customizer-root .room-node.session-node .session-header .session-node-badge-title {
  display: flex;
  align-items: center;
  gap: 4px;
}

#room-customizer-root .room-node.session-node .session-header .delete-session-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

#room-customizer-root .room-node.session-node .session-header .delete-session-btn:hover {
  opacity: 1;
  color: #fff0db;
}

#room-customizer-root .room-node.session-node .session-node-body {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#room-customizer-root .room-node.session-node .session-node-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  background: #f8fafc;
}

#room-customizer-root .room-node.session-node .session-node-info {
  flex: 1;
  min-width: 0;
}

#room-customizer-root .room-node.session-node .session-node-title {
  font-weight: 700;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#room-customizer-root .room-node.session-node .session-node-company {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#room-customizer-root .product-badge {
  display: inline-block;
  margin: 0 2px 3px 0;
  background: #fff6d8;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  font-size: 0.92em;
  padding: 2px 8px;
}

#room-customizer-root .placement-spot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffe78e;
  border: 2px solid #ad9800;
  color: #685100;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  font-size: 1em;
  pointer-events: none;
  z-index: 3;
  opacity: 0.92;
}

#room-customizer-root #addRoomForm #roomTypeGrid .room-type-btn {
  background-color: var(--nova-bg);
  padding: 10px 15px 10px 15px;
  color: #000;
}

#room-customizer-root #addRoomForm #roomTypeGrid .room-type-btn:hover,
#room-customizer-root #addRoomForm #roomTypeGrid .room-type-btn.active {
  background-color: var(--e-global-color-primary);
}

#room-customizer-root #addRoomForm #roomTypeGrid .room-type-btn i {
  padding-right: 10px;
}

#room-customizer-root #addRoomForm #roomTypeGrid .room-type-btn img {
  width: 100%;
  max-height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

#room-customizer-root .modal-content {
  max-width: 100%;
  min-width: 550px;
}

#room-customizer-root .modal-content .modal-body {
  overflow-y: auto;
  height: 820px;
  max-height: 63vh;
}

@media screen and (max-height: 800px) {
  #room-customizer-root .modal-content .modal-body {
    height: 600px;
    max-height: 55vh;
  }
}

@media screen and (max-height: 650px) {
  #room-customizer-root .modal-content .modal-body {
    height: 480px;
    max-height: 50vh;
  }
}

@media (max-width: 800px) {
  #room-customizer-root .room-node {
    font-size: 10px
  }
}

/* Color-coded placement spots */
.placement-spot-table {
  background: #d1f7ec !important;
  border-color: #0d9488 !important;
  color: #0f766e !important;
}

.placement-spot-floor {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
}

.placement-spot-tv {
  background: #fee2e2 !important;
  border-color: #dc2626 !important;
  color: #991b1b !important;
}

.placement-spot-poster {
  background: #f3e8ff !important;
  border-color: #9333ea !important;
  color: #6b21a8 !important;
}

.placement-spot-rollup {
  background: #fef3c7 !important;
  border-color: #d97706 !important;
  color: #92400e !important;
}

/* Legend styling */
.room-placement-legend {
  padding: 6px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
  font-weight: 500;
  color: #475569;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid transparent;
}

.legend-dot-table {
  background: #d1f7ec;
  border-color: #0d9488;
}

.legend-dot-floor {
  background: #e0f2fe;
  border-color: #0284c7;
}

.legend-dot-tv {
  background: #fee2e2;
  border-color: #dc2626;
}

.legend-dot-poster {
  background: #f3e8ff;
  border-color: #9333ea;
}

.legend-dot-rollup {
  background: #fef3c7;
  border-color: #d97706;
}

/* Action selection grid */
#addRoomActionGrid .action-btn {
  padding: 16px 12px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  min-height: 150px;
}

#addRoomActionGrid .action-btn,
#roomTypeGrid .room-type-btn {
  background-color: var(--nova-bg, #f4f7fb);
  color: #1c2647;
}

#addRoomActionGrid .action-btn:hover,
#roomTypeGrid .room-type-btn:hover {
  border-color: var(--e-global-color-primary, #f39000);
  background-color: rgba(243, 144, 0, 0.04);
}

#addRoomActionGrid .action-btn.active,
#roomTypeGrid .room-type-btn.active {
  border-color: var(--e-global-color-primary, #f39000);
  background-color: var(--e-global-color-primary, #f39000);
  color: #fff !important;
}

#addRoomActionGrid .action-btn.active .material-symbols-outlined,
#addRoomActionGrid .action-btn.active div {
  color: #fff !important;
}

#addRoomActionGrid .action-btn .material-symbols-outlined {
  font-size: 28px;
  margin-bottom: 6px;
  color: var(--e-global-color-primary, #f39000);
  transition: color 0.2s ease-in-out;
}

#addRoomActionGrid .action-btn.disabled,
#addRoomActionGrid .action-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}