/**
 * Mondays Resto — Hoja de estilos principal
 * Scrollbars nativos, interacciones SVG, animaciones y cuadrícula del plano.
 */

/* Estilos base y barras de desplazamiento limpias estilo nativo moderno */
* {
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  background-color: #F8FAFC;
  color: #0F172A;
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Interacción en Mapa SVG */
.svg-table-group {
  transition: filter 0.18s ease, opacity 0.18s ease;
  cursor: pointer;
  user-select: none;
}
.svg-table-group:hover {
  filter: drop-shadow(0 6px 10px rgba(37, 99, 235, 0.18));
}
.svg-table-dragging {
  cursor: grabbing !important;
  filter: drop-shadow(0 10px 16px rgba(37, 99, 235, 0.32)) !important;
}

/* Diseñador: evitar scroll táctil al arrastrar mesas */
#layoutDesignerSvg .svg-table-group {
  touch-action: none;
}

/* Animaciones suaves para modales y tarjetas */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.97) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.animate-modal {
  animation: fadeInScale 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Cuadrícula sutil para el plano arquitectónico */
.floorplan-bg {
  background-image: radial-gradient(#CBD5E1 1px, transparent 1px);
  background-size: 18px 18px;
}

/* Cursor de mano (grab / grabbing) para desplazar el plano SVG con zoom */
.svg-pan-canvas {
  cursor: grab;
  touch-action: none;
}
.svg-pan-canvas.is-panning {
  cursor: grabbing !important;
}
.svg-table-draggable {
  cursor: grab !important;
}

/* Estilos de impresión nativa para impresora térmica clásica (80mm / 58mm) */
@media print {
  @page {
    size: 80mm auto;
    margin: 2mm;
  }
  body * {
    visibility: hidden !important;
  }
  #thermalReceiptPaper,
  #thermalReceiptPaper * {
    visibility: visible !important;
  }
  #thermalReceiptPaper {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 76mm !important;
    max-width: 76mm !important;
    padding: 2mm !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: #FFFFFF !important;
    color: #000000 !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }
}

/* Paleta circular radial alrededor del puntero/mesa en Diseño del Restaurante */
@keyframes radialPopIn {
  from { opacity: 0; transform: scale(0.65); }
  to   { opacity: 1; transform: scale(1); }
}
.radial-ring-guide {
  position: absolute;
  width: 124px;
  height: 124px;
  margin-left: -62px;
  margin-top: -62px;
  border-radius: 9999px;
  border: 2px dashed rgba(37, 99, 235, 0.28);
  background: radial-gradient(circle, rgba(255,255,255,0.12) 45%, rgba(239,246,255,0.55) 100%);
  pointer-events: none;
  animation: radialPopIn 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.radial-node-btn {
  position: absolute;
  width: 38px;
  height: 38px;
  margin-left: -19px;
  margin-top: -19px;
  border-radius: 9999px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.22), 0 2px 4px -1px rgba(15, 23, 42, 0.12);
  transition: transform 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
  animation: radialPopIn 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.radial-node-btn:hover {
  transform: scale(1.14);
  z-index: 5;
}
.radial-sub-chip {
  position: absolute;
  pointer-events: auto;
  border-radius: 9999px;
  box-shadow: 0 6px 14px -2px rgba(15, 23, 42, 0.22);
  transition: transform 0.13s ease;
  animation: radialPopIn 0.14s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.radial-sub-chip:hover {
  transform: scale(1.15);
  z-index: 6;
}
