/* ==========================================================
   tables.css — Plano de mesas
   ========================================================== */

.tables-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.tables-toolbar-left { display: flex; align-items: center; gap: 10px; }
.tables-legend {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.8rem; font-weight: 600; color: var(--gray-600);
}
.legend-dot {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px;
}
.legend-dot.free { background: var(--green); }
.legend-dot.busy { background: var(--red); }

/* GRID */
.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

/* MESA CARD */
.table-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  cursor: pointer;
  transition: all var(--transition);
  overflow: hidden;
  border: 2px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  min-height: 168px;
  position: relative;
}
.table-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.table-card:active { transform: scale(.98); }

/* COLOR STRIPE TOP */
.table-stripe {
  height: 5px; width: 100%;
  transition: background var(--transition);
}
.table-card.free .table-stripe  { background: var(--green); }
.table-card.busy .table-stripe  { background: var(--red); }

.table-card.free  { border-color: var(--green-border); }
.table-card.busy  { border-color: var(--red-border); }

.table-card.free:hover  { border-color: var(--green); box-shadow: 0 6px 24px rgba(0,200,83,.15); }
.table-card.busy:hover  { border-color: var(--red); box-shadow: 0 6px 24px rgba(244,67,54,.15); }

.table-body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}

.table-top { display: flex; align-items: flex-start; justify-content: space-between; }
.table-num {
  font-size: 2.2rem; font-weight: 800; line-height: 1; color: var(--gray-900);
}
.table-num-label {
  font-size: 0.68rem; font-weight: 700; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: .07em;
  margin-top: 2px;
}

/* STATUS PILL */
.table-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 700; padding: 4px 10px;
  border-radius: 20px; width: fit-content;
}
.table-card.free .table-pill  { background: var(--green-bg); color: #00a844; }
.table-card.busy .table-pill  { background: var(--red-bg); color: var(--red); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.table-card.busy .pill-dot { animation: blink 1.8s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.table-info {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 3px;
}
.table-guests {
  font-size: 0.8rem; color: var(--gray-600); font-weight: 600;
  display: flex; align-items: center; gap: 5px;
}
.table-time { font-size: 0.75rem; color: var(--gray-400); font-weight: 500; }
.table-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem; font-weight: 700;
  color: var(--brand); margin-top: 4px;
}

/* EMPTY TABLES HINT */
.tables-empty {
  grid-column: 1/-1;
  padding: 48px; text-align: center;
  color: var(--gray-400); font-size: .9rem;
}
