/* One coordinate plane and one symbol scale for guest, preview and editor. */
.venue-plan {
  container-type: inline-size;
  min-width: 0 !important;
  position: relative;
  box-sizing: content-box !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: #f8f5ef !important;
  box-shadow: inset 0 0 0 2px #354650 !important;
  --plan-ink: #354650;
  --plan-gold: #b4a44e;
}
.venue-plan .venue-plan-table {
  position: absolute;
  box-sizing: border-box;
  width: 16cqw !important;
  height: 16cqw !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  border: 1px dashed #819aa8 !important;
  border-radius: 50% !important;
  background: #f8f5ef !important;
  color: var(--plan-ink) !important;
  font: 700 4cqw/1 'Noto Sans TC', sans-serif !important;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  z-index: 10;
  box-shadow: none;
  transition: box-shadow .15s, background .15s;
}
.venue-plan .venue-plan-table::before {
  content: '';
  position: absolute;
  inset: 12%;
  border: 1px solid #6e8999;
  border-radius: 50%;
  background: #dce5ea;
  z-index: -1;
}
.venue-plan .venue-plan-table.vip { width: 22cqw !important; height: 22cqw !important; border-color: #9a893a !important; }
.venue-plan .venue-plan-table.vip::before { background: #f4edb9; border-color: #9a893a; }
.venue-plan .venue-plan-table:hover, .venue-plan .venue-plan-table:focus-visible,
.venue-plan .venue-plan-table.highlighted { outline: 3px solid var(--plan-gold); outline-offset: 2px; }
.venue-plan .venue-plan-table .guest-count {
  top: auto; right: auto; bottom: 16%; left: 0;
  width: 100%; min-width: 0; height: auto; padding: 0;
  color: #354650; background: transparent; font: 500 1.8cqw/1 sans-serif;
}
.venue-plan .venue-plan-fixture {
  position: absolute;
  box-sizing: border-box;
  writing-mode: horizontal-tb;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 2px !important;
  background: var(--fixture-color, #677773) !important;
  color: white !important;
  box-shadow: none !important;
  font: 500 3cqw/1.4 'Noto Sans TC', sans-serif !important;
  z-index: 2;
}
.venue-plan .venue-plan-label { pointer-events: none; text-align: center; }
.venue-plan .venue-plan-fixture[data-kind=stage] { background: #526f80 !important; letter-spacing: .6cqw; }
.venue-plan .venue-plan-fixture[data-kind=aisle] { background: #e9e2d8 !important; color: #354650 !important; z-index: 1; }
.venue-plan .venue-plan-fixture[data-label-direction=vertical] .venue-plan-label { writing-mode: horizontal-tb; white-space: pre; letter-spacing: 0; }
.venue-plan .venue-plan-fixture[data-kind=screen] { background: #dce5ea !important; color: #354650 !important; }
.venue-plan .venue-plan-fixture[data-kind=entrance] { background: #e9e2d8 !important; color: #594b32 !important; }
.venue-plan .venue-plan-fixture[data-kind=pillar],
.venue-plan .venue-plan-fixture[data-shape=circle] { border-radius: 50% !important; }
.venue-plan .editor-fixture.selected { outline: 2px solid #a7743c; z-index: 30; }
.venue-plan .editor-table.dragging { z-index: 100; }
@media (forced-colors: active) {
  .venue-plan .venue-plan-table, .venue-plan .venue-plan-fixture { border: 1px solid CanvasText !important; }
}
.venue-plan .venue-plan-fixture[data-kind=stage] { font-size: 4cqw !important; }
.venue-plan .venue-plan-label {
  display: block;
  flex: none;
  white-space: nowrap;
  line-height: 1.4;
  max-width: none;
  max-height: none;
}

.venue-plan .venue-plan-fixture[data-kind=screen] { font-size: 2.4cqw !important; }

/* A text label and solid outline identify the queried table without color alone. */
.venue-plan .venue-plan-table.highlighted { outline: 3px solid #526f80; z-index: 25; }
.venue-plan .venue-plan-table.highlighted::before { background: #f4edb9; }
.venue-plan .my-seat-label {
  position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  background: #354650; color: #fff; border-radius: 6px; padding: 5px 8px;
  white-space: nowrap; font: 700 clamp(11px, 2.8cqw, 16px)/1.4 sans-serif;
  pointer-events: none;
}
.seat-location-banner {
  position: sticky; top: 12px; z-index: 40; margin: 12px 0; padding: 12px 16px;
  background: #f4edb9; color: #354650; border: 1px solid #9a893a; border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.seat-location-banner.hidden { display: none; }
.seat-location-banner strong { font-size: 1.2rem; }
.seat-location-banner button { background: #526f80; color: white; border: 0; border-radius: 8px; min-height: 44px; padding: 8px 12px; }

/* A shared, bounded label area keeps names inside the circular table symbol. */
.venue-plan .venue-plan-table-label {
  display:block;width:70%;height:60%;align-content:center;text-align:center;
  white-space:normal;overflow-wrap:anywhere;overflow:hidden;
  font-size:calc(var(--table-name-size, 4) * 1cqw);line-height:1.1;
}
