/* Mesas abertas — grelha 2 colunas + cards por status (regras de negócio) */
.open-tables {
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
  overflow: visible;
  background: transparent;
}

.open-tables__disclosure {
  border: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.open-tables__disclosure[open] .open-tables__chevron {
  transform: rotate(0deg);
}

.open-tables__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  margin-bottom: 0.75rem;
  background: transparent;
}

.open-tables__summary::-webkit-details-marker {
  display: none;
}

.open-tables__title {
  margin: 0;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 28px;
  letter-spacing: 0;
  color: #c4ffcb;
  leading-trim: none;
}

.open-tables__chevron {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #c4ffcb;
  opacity: 0.95;
  transform: rotate(-90deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.open-tables__scroller {
  /*
   * “Janela” fixa com scroll interno:
   * - ~3 linhas visíveis (2 colunas) => ~6 cards visíveis
   * - não mexe em navbar/dock; só afeta a área de cards dentro do accordion
   */
  --open-table-card-h: 87px;
  --open-table-row-gap: 0.65rem;
  --open-tables-visible-rows: 3;

  height: calc(
    (var(--open-tables-visible-rows) * var(--open-table-card-h)) +
      ((var(--open-tables-visible-rows) - 1) * var(--open-table-row-gap))
  );

  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  outline: 0;
  filter: none;
}

.open-tables__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 138px);
  justify-content: center;
  column-gap: 1.35rem;
  row-gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  background: transparent;
}

.open-table-item {
  width: 138px;
  height: 87px;
  min-width: 138px;
  justify-self: center;
  overflow: visible;
}

/* Estilos base do card: lobby-table-card.css (import no app Tailwind).
 * Reforço aqui (esta folha carrega depois do :app): o bundle Tailwind às vezes
 * não aplica ou sobrescreve backgrounds dos cards — textura + gradiente translúcido. */
.open-tables .open-table-card__mid {
  background-color: #121c3a !important;
  background-image:
      linear-gradient(
        180deg,
        rgba(3, 243, 235, 0.62) 0%,
        rgba(236, 114, 161, 0.58) 48.56%,
        rgba(91, 135, 232, 0.66) 100%
      ),
      var(--open-table-mid-texture, none) !important;
  background-size: auto, cover !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
}

.open-tables .open-table-card--disabled .open-table-card__mid {
  background-color: transparent !important;
  background-image: linear-gradient(
    180deg,
    #e8e8e8 0%,
    #b8b8b8 45%,
    #9ca3af 100%
  ) !important;
  background-size: auto !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
