/* ESTILOS PERSONALIZADOS PARA PANEL DE COCINA / MOSTRADOR PIZZERÍA */

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --touch-target-min: 48px;
}

body {
  font-family: var(--font-main);
  background-color: #f3f4f6 !important;
  color: #1f2937;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

input, textarea, select {
  user-select: text;
}

/* Header */
.brand-icon {
  width: 46px;
  height: 46px;
  font-size: 1.5rem;
}

/* Botones de tamaño táctil óptimo */
.btn-touch {
  min-height: var(--touch-target-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 12px;
  touch-action: manipulation;
  transition: all 0.15s ease-in-out;
}

.btn-touch:active {
  transform: scale(0.97);
}

.btn-icon-touch {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.25rem;
  touch-action: manipulation;
}

.input-touch {
  min-height: 48px;
  border-radius: 10px;
  font-size: 1.05rem;
}

/* Buscador Táctil */
.search-box .form-control {
  min-height: 52px;
  font-size: 1.1rem;
  border-radius: 12px;
}
.search-box .input-group-text {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.search-box .clear-btn {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  width: 50px;
}

/* Filter Pills Táctiles */
.filter-pill {
  min-height: 48px;
  padding: 0.5rem 1.25rem;
  border-radius: 50rem;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  background-color: #ffffff;
  color: #4b5563;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.filter-pill:hover, .filter-pill:focus {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

.filter-pill.active {
  background-color: #1f2937 !important;
  color: #ffffff !important;
  border-color: #1f2937 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.filter-pill.status-pendiente.active {
  background-color: #d97706 !important;
  border-color: #d97706 !important;
  color: #ffffff !important;
}
.filter-pill.status-pendiente.active .badge {
  background-color: #ffffff !important;
  color: #d97706 !important;
}

.filter-pill.status-horno.active {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
}
.filter-pill.status-horno.active .badge {
  background-color: #ffffff !important;
  color: #dc2626 !important;
}

.filter-pill.status-listo.active {
  background-color: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}
.filter-pill.status-listo.active .badge {
  background-color: #ffffff !important;
  color: #16a34a !important;
}

/* Tarjetas de Pedidos (Cards) */
.order-card {
  border: none;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.order-card.status-border-Pendiente {
  border-top: 6px solid #f59e0b;
}
.order-card.status-border-EnHorno {
  border-top: 6px solid #ef4444;
}
.order-card.status-border-Listo {
  border-top: 6px solid #10b981;
}

/* Header de la tarjeta */
.order-card-header {
  padding: 1rem 1.25rem 0.75rem 1.25rem;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
}

.order-number {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.order-time {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

/* Badge del estado */
.badge-status {
  font-size: 0.85rem;
  padding: 0.4em 0.8em;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-status-Pendiente {
  background-color: #fef3c7;
  color: #b45309;
}
.badge-status-EnHorno {
  background-color: #fee2e2;
  color: #b91c1c;
  animation: pulse-fire 2s infinite;
}
.badge-status-Listo {
  background-color: #dcfce7;
  color: #15803d;
}

@keyframes pulse-fire {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Cuerpo de la tarjeta */
.order-card-body {
  padding: 1.25rem;
  flex: 1;
}

.client-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.client-phone {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.items-list {
  background-color: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  color: #1f2937;
  white-space: pre-line;
  line-height: 1.4;
}

/* Cuadro de notas especiales destacado */
.special-notes-box {
  background-color: #fffbeb;
  border: 2px dashed #f59e0b;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: #92400e;
  font-weight: 600;
  font-size: 0.98rem;
}

/* Footer de la tarjeta */
.order-card-footer {
  padding: 1rem 1.25rem;
  background-color: #ffffff;
  border-top: 1px solid #f3f4f6;
}

.order-total-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: #059669;
}

.payment-method-badge {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3em 0.7em;
  border-radius: 8px;
  background-color: #e0f2fe;
  color: #0369a1;
}

/* Botones principales de avanzar estado */
.btn-action-next {
  min-height: 52px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 14px;
  letter-spacing: 0.2px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

@media (max-width: 576px) {
  .order-number { font-size: 1.2rem; }
  .client-name { font-size: 1.15rem; }
  .btn-action-next { min-height: 48px; font-size: 1rem; }
}
