.planta-stands-wrap.pf26 {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.planta-stands-wrap.pf26 .pf26-toolbar {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.planta-stands-wrap.pf26 .pf26-badge {
  font-weight: 800;
  font-size: 14px;
}

.planta-stands-wrap.pf26 .pf26-hint {
  font-size: 12px;
  opacity: 0.75;
}

/* ===== Layout 2 colunas (planta + carrinho sticky) ===== */
.planta-stands-wrap.pf26 .pf26-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 12px;
  align-items: start;
}

@media (max-width: 980px) {
  .planta-stands-wrap.pf26 .pf26-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== Planta ===== */
.planta-stands-wrap.pf26 .pf26-stage {
  width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
}

.planta-stands-wrap.pf26 .pf26-stage svg {
  display: block;
  height: auto;
  width: 1600px;   /* mantém a planta grande (scroll horizontal) */
  max-width: none;
}

/* Em ecrãs pequenos, volta ao normal */
@media (max-width: 980px) {
  .planta-stands-wrap.pf26 .pf26-stage svg {
    width: 100%;
    max-width: 100%;
  }
}

/* ===== Stands ===== */
.planta-stands-wrap.pf26 .pf26-stage .stand {
  cursor: pointer;
  opacity: 0.30;
  transition: opacity .12s ease, stroke-width .12s ease, filter .12s ease;
  stroke-width: 1;

  /* fallback se o tema for agressivo */
  fill: rgba(0, 140, 255, 0.35);
  stroke: rgba(0, 60, 120, 0.7);
}

.planta-stands-wrap.pf26 .pf26-stage .stand:hover,
.planta-stands-wrap.pf26 .pf26-stage .stand.pf26-active {
  opacity: 0.65;
  stroke-width: 2;
}

.planta-stands-wrap.pf26 .pf26-stage .stand.is-selected {
  opacity: 1 !important;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 1px rgba(0,0,0,.25));
}

.planta-stands-wrap.pf26 .pf26-stage .stand.is-disabled,
.planta-stands-wrap.pf26 .pf26-stage .stand.is-locked,
.planta-stands-wrap.pf26 .pf26-stage .stand.is-reserved {
  cursor: not-allowed;
  opacity: 0.15 !important;
  stroke-width: 1;
  filter: none;
}

/* ===== Toast ===== */
.planta-stands-wrap.pf26 .pf26-toast {
  position: sticky;
  bottom: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  border-radius: 8px;
  background: rgba(0,0,0,.75);
  color: #fff;
  width: fit-content;
  max-width: 100%;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}
.planta-stands-wrap.pf26 .pf26-toast.pf26-show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Carrinho (sticky) ===== */
.planta-stands-wrap.pf26 .pf26-cart {
  position: sticky;
  top: 14px;
}

@media (max-width: 980px) {
  .planta-stands-wrap.pf26 .pf26-cart {
    position: static;
  }
}

.planta-stands-wrap.pf26 .pf26-cart-inner {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  max-height: calc(100vh - 30px);
  overflow: auto;
}

.planta-stands-wrap.pf26 .pf26-cart-title {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 6px;
}

.planta-stands-wrap.pf26 .pf26-cart-meta {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 10px;
}

.planta-stands-wrap.pf26 .pf26-cart-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: grid;
  gap: 8px;
}

.planta-stands-wrap.pf26 .pf26-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  background: rgba(0,0,0,.02);
}

.planta-stands-wrap.pf26 .pf26-cart-item strong {
  font-size: 13px;
}

.planta-stands-wrap.pf26 .pf26-cart-remove {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  opacity: 0.7;
}
.planta-stands-wrap.pf26 .pf26-cart-remove:hover {
  opacity: 1;
  text-decoration: underline;
}

.planta-stands-wrap.pf26 .pf26-cart-summary {
  border-top: 1px dashed rgba(0,0,0,.12);
  padding-top: 10px;
  margin-top: 6px;
}

.planta-stands-wrap.pf26 .pf26-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
}

.planta-stands-wrap.pf26 .pf26-cart-note {
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.7;
}

.planta-stands-wrap.pf26 .pf26-cart-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.planta-stands-wrap.pf26 .pf26-btn {
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
}

.planta-stands-wrap.pf26 .pf26-btn-primary {
  background: #0b5fff;
  border-color: #0b5fff;
  color: #fff;
}

.planta-stands-wrap.pf26 .pf26-btn-ghost {
  background: rgba(0,0,0,.25);
  border-color: rgba(0,0,0,.25);
}

.planta-stands-wrap.pf26 .pf26-btn-ghost:hover {
  background: rgba(0,0,0,.07);
}

.planta-stands-wrap.pf26 .pf26-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Erros */
.planta-stands-wrap.pf26.pf26-error {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
}
/* ===== Estados dos stands ===== */

/* Base */
.planta-stands-wrap .stand {
    transition: all 0.2s ease;
}

/* LOCKED (temporariamente bloqueado) */
.planta-stands-wrap .stand.is-locked {
    fill: #ff9800 !important;
    opacity: 0.85;
    cursor: not-allowed;
}

/* RESERVED (definitivamente reservado) */
.planta-stands-wrap .stand.is-reserved {
    fill: #d32f2f !important;
    opacity: 0.9;
    cursor: not-allowed;
}

/* Hover só para disponíveis */
.planta-stands-wrap .stand:not(.is-locked):not(.is-reserved):hover {
    stroke: #000;
    stroke-width: 2px;
}
/* Estados (subtil, para manter as cores da planta) */
.planta-stands-wrap .stand.is-reserved { filter: brightness(0.65); cursor: not-allowed; }
.planta-stands-wrap .stand.is-locked   { filter: brightness(0.80); cursor: not-allowed; }
.planta-stands-wrap .stand.is-selected { stroke: #000; stroke-width: 2px; }

/* Toast (se já tiveres, ignora) */
.pf26-toast { position:absolute; top:12px; left:12px; padding:10px 12px; border-radius:10px; background:#111; color:#fff; opacity:0; transform:translateY(-6px); transition:.2s; pointer-events:none; }
.pf26-toast.show { opacity:0.92; transform:translateY(0); }
.pf26-toast.is-warn { background:#ff9800; color:#111; }
.pf26-toast.is-error { background:#d32f2f; }
