.mesa-banner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  background: #1a2332;
  color: #fff;
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: 44px;
}
.mesa-banner-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}
.mesa-banner-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.mesa-banner-pill {
  margin-left: auto;
  font-size: .7rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 360px) {
  .mesa-banner-pill { display: none; }
}

/* ── RETURNING CUSTOMER GREETING ────────────────────────────── */
.rc-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.rc-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: #10b981; color: #fff;
  font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.rc-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.rc-hello {
  font-size: .9rem; color: #065f46; line-height: 1.3;
}
.rc-hello strong { font-weight: 800; }
.rc-sub {
  font-size: .7rem; color: #059669; font-weight: 500;
}
.rc-change-btn {
  font-size: .72rem; font-weight: 600; color: #059669;
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.25);
  border-radius: 8px; padding: 5px 10px;
  cursor: pointer; flex-shrink: 0;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.rc-change-btn:active { background: rgba(16,185,129,.22); }

.btn-salao-confirm {
  width: 100%;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity .2s;
}
.btn-salao-confirm:disabled { opacity: .5; cursor: not-allowed; }
.btn-salao-confirm {
  background: #0f172a;
  border-radius: 12px;
  font-size: .95rem;
  letter-spacing: -.01em;
}
.btn-salao-confirm:active { opacity: .8; }

.btn-solicitar-conta {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  border: none;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity .2s, transform .1s;
  box-shadow: 0 2px 8px rgba(220,38,38,.3);
  letter-spacing: -.01em;
}
.btn-solicitar-conta:active { opacity: .85; transform: scale(.98); }
.btn-solicitar-conta:disabled {
  background: #d1fae5;
  color: #065f46;
  box-shadow: none;
  cursor: default;
  transform: none;
}

/* ── SESSÃO PEDIDOS — TIMELINE HORIZONTAL ──────────────────── */
.so-timeline-wrap {
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  margin-bottom: 14px;
  padding-bottom: 4px;
}
.so-timeline-wrap::-webkit-scrollbar { height: 4px; }
.so-timeline-wrap::-webkit-scrollbar-track { background: var(--bg); border-radius: 4px; }
.so-timeline-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.so-timeline {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: max-content;
  padding: 4px 4px 16px;
  position: relative;
}
.so-timeline::after {
  content: '';
  position: absolute;
  bottom: 21px; left: 28px; right: 28px;
  height: 2px; background: var(--border); z-index: 0;
}
.so-node {
  display: flex; flex-direction: column; align-items: center;
  width: 160px; flex-shrink: 0;
}
.so-card {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  width: 100%; margin-bottom: 10px;
  box-sizing: border-box;
  transition: box-shadow .15s;
}
.so-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.so-num { font-weight: 700; color: var(--primary); font-size: .82rem; }
.so-val { font-weight: 800; font-size: .9rem; }
.so-items {
  font-size: .75rem; color: var(--muted);
  margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 136px;
}
.so-dot-wrap { position: relative; z-index: 1; }
.so-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--border);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--border);
}
.so-badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  background: var(--border); color: var(--muted);
}

/* Status */
.so-s-preparo .so-card    { background: #fffbeb; border-color: #fde68a; }
.so-s-preparo .so-dot     { background: #f59e0b; box-shadow: 0 0 0 2px #fde68a; }
.so-s-preparo .so-badge   { background: #fef3c7; color: #92400e; }
.so-s-andamento .so-card  { background: #eff6ff; border-color: #bfdbfe; }
.so-s-andamento .so-dot   { background: #3b82f6; box-shadow: 0 0 0 2px #bfdbfe; }
.so-s-andamento .so-badge { background: #dbeafe; color: #1d4ed8; }
.so-s-caminho .so-card    { background: #f0fdf4; border-color: #86efac; }
.so-s-caminho .so-dot     { background: #22c55e; box-shadow: 0 0 0 2px #86efac; }
.so-s-caminho .so-badge   { background: #dcfce7; color: #15803d; }
.so-s-entregue .so-card   { background: #f0fdf4; border-color: #bbf7d0; }
.so-s-entregue .so-dot    { background: #16a34a; box-shadow: 0 0 0 2px #bbf7d0; }
.so-s-entregue .so-badge  { background: #d1fae5; color: #065f46; }
.so-s-cancelado .so-card  { opacity: .5; }
.so-s-cancelado .so-dot   { background: #9ca3af; }
.so-s-cancelado .so-badge { background: #fee2e2; color: #991b1b; }

.so-total-row {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 2px solid var(--border);
  padding: 12px 4px 0;
  font-size: .95rem;
}
.so-total-row strong { font-size: 1.05rem; color: var(--primary); }

.mesa-orders-empty {
  text-align: center;
  padding: 32px;
  color: var(--muted);
}

/* ── MESA ORDERS NOTIFY BAR ──────────────────────────────────────── */
.mesa-orders-notify {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  position: sticky;
  top: 44px;
  z-index: 89;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .3s, transform .2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.mesa-orders-notify:active { transform: scale(.99); opacity: .9; }

/* Estado: aguardando */
.notify-pending  { background: linear-gradient(135deg, #78350f, #92400e); }
/* Estado: em preparo */
.notify-cooking  { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); }
/* Estado: pronto/a caminho */
.notify-ready    { background: linear-gradient(135deg, #064e3b, #065f46); }
/* Estado: entregue */
.notify-done     { background: linear-gradient(135deg, #374151, #4b5563); }

/* Dot pulsante */
.mesa-notify-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fbbf24;
  flex-shrink: 0;
  animation: notify-pulse 1.8s ease-in-out infinite;
}
.notify-ready .mesa-notify-dot {
  background: #6ee7b7;
  animation: notify-pulse-green 1.2s ease-in-out infinite;
}
.notify-done .mesa-notify-dot {
  background: #9ca3af;
  animation: none;
}
@keyframes notify-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,.8); transform: scale(1); }
  50%       { box-shadow: 0 0 0 7px rgba(251,191,36,0); transform: scale(1.15); }
}
@keyframes notify-pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(110,231,183,.8); transform: scale(1); }
  50%       { box-shadow: 0 0 0 7px rgba(110,231,183,0); transform: scale(1.15); }
}

.mesa-notify-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mesa-notify-label {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mesa-notify-sub {
  color: rgba(255,255,255,.65);
  font-size: .68rem;
}
.mesa-notify-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.mesa-notify-total {
  color: #fbbf24;
  font-size: .88rem;
  font-weight: 800;
}
.notify-ready .mesa-notify-total  { color: #6ee7b7; }
.notify-done  .mesa-notify-total  { color: #d1d5db; }
.mesa-notify-arrow {
  color: rgba(255,255,255,.7);
}

/* ── MESA STATUS SCREEN ─────────────────────────────────────────── */
.mesa-status-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.mesa-status-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 16px 16px 18px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.mesa-status-back-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: background .15s;
}
.mesa-status-back-btn:active { background: rgba(255,255,255,.2); }
.mesa-status-header-info { flex: 1; min-width: 0; }
.mesa-status-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mesa-status-session-lbl {
  font-size: .7rem;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.mesa-status-session-lbl::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  flex-shrink: 0;
}
.mesa-status-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mesa-status-total-wrap { text-align: right; }
.mesa-status-total-lbl {
  display: block;
  font-size: .62rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mesa-status-total-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.1;
}
.mesa-status-refresh-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .15s, opacity .15s;
}
.mesa-status-refresh-btn:active { opacity: .5; }

/* Body */
.mesa-status-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  -webkit-overflow-scrolling: touch;
}

/* Footer */
.mesa-status-footer {
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mesa-status-refresh-hint {
  display: block;
  text-align: center;
  font-size: .65rem;
  color: #94a3b8;
  margin-bottom: 0;
}

/* Empty state */
.mesa-status-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 40px;
  color: #94a3b8;
  text-align: center;
}
.mesa-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.mesa-status-empty p { font-size: .88rem; line-height: 1.6; margin: 0; }

/* Stepper */
.mesa-stepper {
  display: flex;
  align-items: flex-start;
  margin: 10px 0 8px;
}
.mesa-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.mesa-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 7px;
  left: calc(50% + 9px);
  right: calc(-50% + 9px);
  height: 2px;
  background: var(--border, #e5e7eb);
  z-index: 0;
}
.mesa-step-done:not(:last-child)::after {
  background: var(--primary, #e53e3e);
}
.mesa-step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface, #fff);
  border: 2px solid var(--border, #e5e7eb);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.mesa-step-done .mesa-step-dot {
  background: var(--primary, #e53e3e);
  border-color: var(--primary, #e53e3e);
}
.mesa-step-active .mesa-step-dot {
  background: #fff;
  border-color: var(--primary, #e53e3e);
  box-shadow: 0 0 0 3px rgba(229,62,62,.18);
}
.mesa-step-label {
  font-size: .58rem;
  color: var(--muted, #9ca3af);
  margin-top: 4px;
  text-align: center;
  line-height: 1.25;
}
.mesa-step-done .mesa-step-label,
.mesa-step-active .mesa-step-label {
  color: var(--text, #111827);
  font-weight: 600;
}

.mesa-order-customer {
  font-weight: 600;
  color: var(--text, #111827);
}
.mesa-order-itens-list {
  font-size: .8rem;
  color: var(--text, #111827);
  font-weight: 500;
  margin: 3px 0 1px;
  line-height: 1.4;
}
.mesa-order-notes {
  font-size: .75rem;
  color: var(--muted, #9ca3af);
  font-style: italic;
  margin-bottom: 2px;
}

/* ── MOC CARDS (mesa order cards) ───────────────────────────────── */
.moc-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(15,23,42,.08), 0 0 0 1px rgba(15,23,42,.05);
  border-left: 4px solid var(--ac, #e5e7eb);
  transition: box-shadow .2s;
}
.moc-card-urgent {
  box-shadow: 0 4px 16px rgba(16,185,129,.15), 0 0 0 1px rgba(16,185,129,.12);
}
.moc-card-pago {
  opacity: .78;
  border-left-color: #10b981 !important;
}

/* Status band */
.moc-band {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  position: relative;
  overflow: hidden;
}
.moc-band-icon {
  font-size: .95rem;
  flex-shrink: 0;
  line-height: 1;
}
.moc-band-label {
  font-size: .82rem;
  font-weight: 800;
  flex: 1;
  letter-spacing: -.01em;
}
.moc-band-time {
  font-size: .72rem;
  color: rgba(0,0,0,.4);
  font-weight: 500;
  flex-shrink: 0;
}
/* Pulse ring for urgent statuses */
.moc-pulse-ring {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: moc-ring-pulse 1.6s ease-in-out infinite;
}
@keyframes moc-ring-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.8); transform: translateY(-50%) scale(1); }
  50%       { box-shadow: 0 0 0 8px rgba(16,185,129,0); transform: translateY(-50%) scale(1.3); }
}

/* Card content */
.moc-content { padding: 12px 14px 14px; }
.moc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.moc-num {
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: var(--ac, #94a3b8);
  border-radius: 6px;
  padding: 2px 7px;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.moc-cname {
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Items list */
.moc-items {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.moc-item {
  font-size: .84rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.4;
  padding-left: 14px;
  position: relative;
}
.moc-item::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--ac, #94a3b8);
  font-weight: 700;
}
.moc-item-empty {
  color: #94a3b8;
  font-weight: 400;
}
.moc-item-empty::before { content: ''; }

/* Notes */
.moc-notes {
  font-size: .76rem;
  color: #64748b;
  background: #f8fafc;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 10px;
  border-left: 3px solid #e2e8f0;
}

/* Stepper */
.moc-stepper {
  display: flex;
  align-items: flex-start;
  margin: 0 0 12px;
  padding: 10px 0 2px;
  border-top: 1px solid #f1f5f9;
}
.moc-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.moc-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 6px;
  left: calc(50% + 8px);
  right: calc(-50% + 8px);
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}
.moc-step.done:not(:last-child)::after { background: var(--ac, #e53e3e); }
.moc-sdot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e2e8f0;
  position: relative; z-index: 1;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.moc-step.done .moc-sdot { background: var(--ac, #e53e3e); border-color: var(--ac, #e53e3e); }
.moc-step.active .moc-sdot {
  background: #fff;
  border-color: var(--ac, #e53e3e);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ac, #e53e3e) 15%, transparent);
}
.moc-slbl {
  font-size: .56rem;
  color: #94a3b8;
  margin-top: 4px;
  text-align: center;
  line-height: 1.2;
  font-weight: 500;
}
.moc-step.done .moc-slbl,
.moc-step.active .moc-slbl { color: #334155; font-weight: 700; }

/* Bottom: total + action */
.moc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.moc-total-block { display: flex; flex-direction: column; gap: 1px; }
.moc-total-lbl { font-size: .62rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.moc-total-val { font-size: 1.05rem; font-weight: 800; color: #0f172a; }

/* Action buttons */
.moc-action-btn {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  border: none;
  transition: opacity .15s, transform .1s;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 38px;
}
.moc-action-btn:active { opacity: .75; transform: scale(.97); }
.moc-action-btn.moc-action-cancel {
  background: #fee2e2;
  color: #991b1b;
}
.moc-action-btn.moc-action-pagar {
  background: #dbeafe;
  color: #1e40af;
}
.moc-action-btn.moc-action-sent {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: default;
}
.moc-action-btn:disabled { cursor: default; }

/* ══════════════════════════════════════════════════════════════
   TRACKER — nova interface de acompanhamento de pedidos
   ══════════════════════════════════════════════════════════════ */

/* Seções (Comidas / Bebidas) */
.trk-section { margin-bottom: 24px; }
.trk-section-hdr {
  display: flex; align-items: center; gap: 8px;
  padding: 0 2px 10px; margin-bottom: 4px;
  border-bottom: 2px solid #f1f5f9;
}
.trk-section-icon { font-size: 1.15rem; }
.trk-section-title { font-size: .95rem; font-weight: 700; color: #1e293b; flex: 1; }
.trk-section-badge {
  min-width: 22px; height: 22px; border-radius: 99px;
  background: #e2e8f0; color: #475569; font-size: .72rem;
  font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 6px;
}

/* Cards */
.trk-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  margin-bottom: 10px; border-left: 4px solid var(--ac, #e5e7eb);
  box-shadow: 0 1px 8px rgba(15,23,42,.08), 0 0 0 1px rgba(15,23,42,.04);
}
.trk-card.trk-active {
  box-shadow: 0 4px 18px rgba(59,130,246,.13), 0 0 0 1px rgba(59,130,246,.1);
}

/* Topo do card */
.trk-card-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; gap: 10px; min-height: 52px;
}
.trk-card-top-left { display: flex; flex-direction: column; gap: 3px; }
.trk-order-num {
  font-size: .68rem; font-weight: 700; color: #94a3b8;
  letter-spacing: .06em; text-transform: uppercase;
}
.trk-customer { font-size: .9rem; font-weight: 600; color: #0f172a; }
.trk-status-pill {
  display: flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 700; white-space: nowrap;
  padding: 5px 10px; border-radius: 20px; background: rgba(255,255,255,.6);
}
.trk-status-icon { font-size: .88rem; }
.trk-own-dot { color: #3b82f6; font-size: .55rem; margin-left: 2px; }

/* Corpo do card */
.trk-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }

/* Itens — cada um em sua própria linha */
.trk-items-list { display: flex; flex-direction: column; gap: 5px; }
.trk-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; background: #f8fafc; border-radius: 10px;
  border: 1px solid #f1f5f9;
}
.trk-item-icon { font-size: .88rem; flex-shrink: 0; width: 20px; text-align: center; }
.trk-item-name { flex: 1; font-size: .84rem; font-weight: 500; color: #1e293b; line-height: 1.3; }
.trk-item-qty {
  font-size: .73rem; font-weight: 700; color: #3b82f6;
  background: #eff6ff; border-radius: 6px; padding: 2px 7px; flex-shrink: 0;
}
.trk-item-notes {
  display: block; width: 100%; font-size: .7rem; color: #94a3b8;
  font-style: italic; margin-top: 2px; padding-left: 28px;
}
.trk-empty-items { font-size: .82rem; color: #94a3b8; padding: 4px 2px; }
.trk-order-notes {
  font-size: .78rem; color: #64748b; background: #fffbeb;
  border-radius: 8px; padding: 7px 10px; border-left: 3px solid #fbbf24;
}

/* Timeline — layout HORIZONTAL */
.trk-timeline {
  display: flex; flex-direction: row;
  background: #f8fafc; border-radius: 12px;
  padding: 12px 10px; margin-bottom: 10px;
  overflow-x: auto;
}
.trk-timeline::-webkit-scrollbar { height: 0; }

.trk-step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; min-width: 64px;
}

/* linha + ponto na mesma linha horizontal */
.trk-step-top {
  display: flex; flex-direction: row; align-items: center;
  width: 100%; margin-bottom: 8px;
}
.trk-dot {
  width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0;
  background: #cbd5e1; border: 2px solid #e2e8f0;
  transition: background .2s, border-color .2s;
  position: relative; z-index: 1;
}
.trk-step.done  .trk-dot { background: #10b981; border-color: #10b981; }
.trk-step.active .trk-dot {
  background: #3b82f6; border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59,130,246,.18);
}
.trk-line { flex: 1; height: 2px; background: #e2e8f0; }
.trk-step.done .trk-line { background: #10b981; }

/* Info: label + horário centralizados abaixo do ponto */
.trk-step-info {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; text-align: center;
}
.trk-step-label { font-size: .72rem; font-weight: 600; color: #94a3b8; line-height: 1.2; }
.trk-step.done   .trk-step-label { color: #059669; }
.trk-step.active .trk-step-label { color: #2563eb; }
.trk-step-time {
  font-size: .68rem; color: #94a3b8;
  font-variant-numeric: tabular-nums; font-weight: 500;
}
.trk-step.done   .trk-step-time { color: #10b981; font-weight: 700; }
.trk-step.active .trk-step-time { color: #3b82f6; font-weight: 700; }

/* Tempo total */
.trk-elapsed {
  font-size: .78rem; font-weight: 600; color: #059669;
  background: #ecfdf5; border-radius: 8px; padding: 6px 10px;
  margin-bottom: 10px; text-align: center;
}

/* Rodapé do card */
.trk-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 2px;
}
.trk-total-val { font-size: .98rem; font-weight: 800; color: #0f172a; }
.trk-action-btn {
  padding: 9px 16px; border-radius: 12px; border: none;
  font-size: .8rem; font-weight: 700; cursor: pointer;
  transition: background .15s; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.trk-action-btn:active { opacity: .85; transform: scale(.97); }
.trk-action-pay   { background: #0f172a; color: #fff; }
.trk-action-cancel { background: #fee2e2; color: #dc2626; }
.trk-action-sent   { background: #f1f5f9; color: #94a3b8; cursor: default; }
.trk-pago-tag {
  font-size: .78rem; font-weight: 700; color: #059669;
  background: #d1fae5; padding: 7px 13px; border-radius: 20px;
}
.trk-card.trk-pago { opacity: .8; }

/* Botão editar meu pedido */
.moc-edit-btn {
  display: block; width: 100%; margin-top: 4px;
  padding: 10px; border-radius: 12px;
  border: 1.5px dashed #cbd5e1; background: none;
  color: #64748b; font-size: .82rem; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: border-color .15s, color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.moc-edit-btn:active { background: #f8fafc; }

/* ── MEU PEDIDO (own order highlight) ───────────────────────── */
.moc-card-own { border-left-width: 4px; }
.moc-own-badge {
  font-size: .65rem; font-weight: 700; letter-spacing: .03em;
  background: rgba(255,255,255,.35); color: inherit;
  border-radius: 20px; padding: 2px 8px; margin-left: auto; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.5);
}
/* ── ORDER EDIT OVERLAY (drawer) ─────────────────────────────── */
.oe-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 9000; display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.oe-overlay.oe-overlay-visible { opacity: 1; }
.oe-overlay.oe-overlay-visible .oe-drawer { transform: translateY(0); }
.oe-drawer {
  background: #fff; width: 100%; max-width: 500px;
  border-radius: 20px 20px 0 0; display: flex; flex-direction: column;
  max-height: 90vh; transform: translateY(80px);
  transition: transform .28s cubic-bezier(.34,1.4,.64,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,.2);
}

/* Handle drag indicator */
.oe-drawer::before {
  content: ''; display: block; width: 36px; height: 4px;
  background: #cbd5e1; border-radius: 2px; margin: 10px auto 0; flex-shrink: 0;
}

.oe-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px 14px; flex-shrink: 0;
}
.oe-header-info { display: flex; flex-direction: column; gap: 1px; }
.oe-title { font-size: 1rem; font-weight: 700; color: #0f172a; line-height: 1.2; }
.oe-subtitle { font-size: .75rem; color: #94a3b8; font-weight: 500; }
.oe-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: #f1f5f9; color: #64748b; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.oe-close:active { background: #e2e8f0; }

/* Body com scroll */
.oe-body { flex: 1; overflow-y: auto; padding: 0 16px 8px; display: flex; flex-direction: column; gap: 16px; }

/* Seções */
.oe-section { display: flex; flex-direction: column; gap: 8px; }
.oe-section-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #94a3b8; padding: 0 2px;
}

/* Itens atuais */
.oe-curr-list { display: flex; flex-direction: column; gap: 4px; }
.oe-curr-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; background: #f8fafc; border-radius: 10px;
  border: 1px solid #f1f5f9;
}
.oe-curr-icon { font-size: .9rem; flex-shrink: 0; }
.oe-curr-name { flex: 1; font-size: .85rem; font-weight: 500; color: #1e293b; }
.oe-curr-price { font-size: .82rem; font-weight: 600; color: #16a34a; white-space: nowrap; }
.oe-curr-note { font-size: .72rem; color: #94a3b8; font-style: italic; }
.oe-empty-items { font-size: .82rem; color: #94a3b8; padding: 4px 2px; }

/* Notas */
.oe-notes {
  width: 100%; border: 1.5px solid #e2e8f0; border-radius: 12px;
  padding: 10px 14px; font-size: .88rem; color: #1e293b; resize: none;
  font-family: inherit; outline: none; transition: border-color .15s; box-sizing: border-box;
  line-height: 1.5;
}
.oe-notes:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.1); }

/* Produtos para adicionar */
.oe-prod-list { display: flex; flex-direction: column; gap: 6px; }
.oe-prod-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: #f8fafc; border-radius: 12px;
  border: 1.5px solid #f1f5f9; transition: border-color .15s;
}
.oe-prod-row:has(.oe-qty-val:not(:empty)[data-positive]) { border-color: #bfdbfe; background: #eff6ff; }
.oe-prod-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.oe-prod-name { font-size: .87rem; font-weight: 500; color: #1e293b; }
.oe-prod-price { font-size: .75rem; color: #64748b; }
.oe-qty-ctrl { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.oe-qty-btn {
  width: 32px; height: 32px; border-radius: 10px; border: 1.5px solid #e2e8f0;
  background: #fff; font-size: 1.1rem; cursor: pointer; color: #475569;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  transition: all .15s; -webkit-tap-highlight-color: transparent;
}
.oe-qty-btn:active { background: #f1f5f9; transform: scale(.92); }
.oe-qty-val {
  font-size: .95rem; font-weight: 700; color: #1e293b;
  min-width: 20px; text-align: center;
}

/* Rodapé */
.oe-footer {
  display: flex; gap: 10px; padding: 14px 16px 18px;
  border-top: 1px solid #f1f5f9; flex-shrink: 0;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}
.oe-btn-cancel {
  flex: 1; padding: 13px; border-radius: 14px; border: 1.5px solid #e2e8f0;
  background: #f8fafc; color: #64748b; font-size: .9rem; font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.oe-btn-save {
  flex: 2; padding: 13px; border-radius: 14px; border: none;
  background: #2563eb; color: #fff; font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.oe-btn-save:active { background: #1d4ed8; }
.oe-btn-save:disabled { background: #93c5fd; cursor: default; }

/* ══════════════════════════════════════════════════════════════
   NV — Nova Visão de Pedidos do Cliente
   ══════════════════════════════════════════════════════════════ */

/* Seção */
.nv-section { margin-bottom: 22px; }
.nv-section-hdr {
  display: flex; align-items: center; gap: 8px;
  padding: 0 2px 10px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 10px;
}
.nv-section-icon { font-size: 1rem; }
.nv-section-title { flex: 1; font-size: .9rem; font-weight: 700; color: #1e293b; }
.nv-section-count {
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 99px; background: #e2e8f0; color: #475569;
  font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
/* Outros da mesa — cards ligeiramente mais suaves */
.nv-section-others .nv-card { opacity: .88; }
.nv-section-others .nv-card:hover { opacity: 1; }

/* Card */
.nv-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 12px;
  border-left: 4px solid var(--ac, #e5e7eb);
  box-shadow: 0 2px 10px rgba(15,23,42,.07), 0 0 0 1px rgba(15,23,42,.04);
  transition: box-shadow .2s;
}
.nv-card.nv-active {
  box-shadow: 0 4px 20px rgba(59,130,246,.1), 0 0 0 1px rgba(59,130,246,.08);
}
.nv-card.nv-own {
  box-shadow: 0 4px 24px rgba(15,23,42,.1), 0 0 0 2px var(--ac, #3b82f6);
}
.nv-card.nv-pago { opacity: .8; }

/* Banner de status */
.nv-card-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; gap: 10px;
}
.nv-status-left {
  display: flex; align-items: center; gap: 8px;
}
.nv-status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: currentColor; opacity: .55; flex-shrink: 0;
}
.nv-status-dot.nv-pulse {
  animation: nv-pulse 1.8s ease-in-out infinite;
}
@keyframes nv-pulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: .55; transform: scale(1); }
  50%       { box-shadow: 0 0 0 6px transparent; opacity: .9; transform: scale(1.2); }
}
.nv-status-icon { font-size: 1rem; line-height: 1; }
.nv-status-lbl  { font-size: .9rem; font-weight: 800; letter-spacing: -.01em; }
.nv-status-right {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.nv-order-num { font-size: .72rem; color: rgba(0,0,0,.38); font-weight: 600; }
.nv-own-badge {
  font-size: .62rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(0,0,0,.1); color: inherit;
  border-radius: 20px; padding: 2px 8px;
  border: 1px solid rgba(0,0,0,.08);
}
.nv-cname {
  font-size: .75rem; font-weight: 600; opacity: .7;
  max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Stepper */
.nv-stepper {
  display: flex;
  padding: 14px 10px 10px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}
.nv-step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
}
.nv-step-top {
  display: flex; flex-direction: row; align-items: center;
  width: 100%; margin-bottom: 7px;
}
.nv-step-dot {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  background: #e2e8f0; border: 2px solid #cbd5e1;
  position: relative; z-index: 1;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.nv-step.done   .nv-step-dot { background: #10b981; border-color: #10b981; }
.nv-step.active .nv-step-dot {
  background: #fff; border-color: var(--ac, #3b82f6);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ac, #3b82f6) 20%, transparent);
}
.nv-step-line {
  flex: 1; height: 2px; background: #e2e8f0;
  transition: background .2s;
}
.nv-step.done .nv-step-line { background: #10b981; }
.nv-step-lbl {
  font-size: .6rem; color: #94a3b8; font-weight: 500;
  text-align: center; line-height: 1.3; letter-spacing: .01em;
}
.nv-step.done   .nv-step-lbl { color: #059669; font-weight: 700; }
.nv-step.active .nv-step-lbl { color: var(--ac, #2563eb); font-weight: 700; }
.nv-step-time {
  font-size: .58rem; color: #94a3b8; text-align: center;
  margin-top: 2px; font-variant-numeric: tabular-nums;
}
.nv-step.done   .nv-step-time { color: #10b981; }
.nv-step.active .nv-step-time { color: var(--ac, #2563eb); }

/* Lista de itens */
.nv-items {
  padding: 10px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.nv-item {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px;
  font-size: .84rem; line-height: 1.4;
}
.nv-item-icon { flex-shrink: 0; font-size: .88rem; }
.nv-item-name { flex: 1; color: #1e293b; font-weight: 500; min-width: 0; }
.nv-item-name b { color: #3b82f6; font-weight: 700; }
.nv-item-note {
  width: 100%; padding-left: 22px;
  font-size: .7rem; color: #94a3b8; font-style: italic;
}

/* Observações */
.nv-notes {
  margin: 0 14px 2px;
  font-size: .77rem; color: #64748b;
  background: #fffbeb; border-radius: 8px;
  padding: 6px 10px; border-left: 3px solid #fbbf24;
}

/* Tempo decorrido */
.nv-elapsed {
  margin: 4px 14px 0;
  font-size: .74rem; color: #059669; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}

/* Rodapé do card */
.nv-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 14px; gap: 10px;
  border-top: 1px solid #f1f5f9; margin-top: 8px;
}
.nv-total { font-size: 1.05rem; font-weight: 800; color: #0f172a; }
.nv-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nv-btn {
  padding: 9px 14px; border-radius: 12px; border: none;
  font-size: .8rem; font-weight: 700; cursor: pointer;
  transition: opacity .15s, transform .1s; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; min-height: 38px;
}
.nv-btn:active { opacity: .8; transform: scale(.97); }
.nv-btn-pay    { background: #0f172a; color: #fff; }
.nv-btn-cancel { background: #fee2e2; color: #dc2626; }
.nv-btn-sent   { background: #f1f5f9; color: #94a3b8; cursor: default; font-size: .74rem; }
.nv-btn-edit   { background: #f1f5f9; color: #475569; }
.nv-pago-tag   { font-size: .82rem; font-weight: 700; color: #059669; background: #d1fae5; padding: 7px 13px; border-radius: 20px; }

/* ══════════════════════════════════════════════════════════════
   GC — Grouped Client Cards (1 card por cliente)
   ══════════════════════════════════════════════════════════════ */

/* Card principal */
.gc-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 14px;
  border-left: 4px solid var(--ac, #e5e7eb);
  box-shadow: 0 2px 12px rgba(15,23,42,.07), 0 0 0 1px rgba(15,23,42,.04);
  transition: box-shadow .2s;
}
.gc-card.gc-own {
  box-shadow: 0 4px 24px rgba(15,23,42,.1), 0 0 0 2px var(--ac);
}
.gc-card.gc-pago { opacity: .82; }

/* Header do card */
.gc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px; gap: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.gc-header-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.gc-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--ac, #3b82f6); color: #fff;
  font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -.02em;
}
.gc-header-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gc-client-name {
  font-size: .95rem; font-weight: 700; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gc-client-meta { font-size: .68rem; color: #94a3b8; font-weight: 500; }
.gc-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.gc-own-tag {
  font-size: .58rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--ac, #3b82f6); color: #fff;
  border-radius: 20px; padding: 2px 8px;
}
.gc-total { font-size: 1.05rem; font-weight: 800; color: #0f172a; }

/* Lista de itens */
.gc-items-list { display: flex; flex-direction: column; }

/* Label de grupo (Cozinha / Bar) */
.gc-group-label {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px 5px;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #94a3b8;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
.gc-group-label:first-child { border-top: none; }
.gc-group-label-bar { color: #6366f1; background: #f5f3ff; border-color: #ede9fe; }

.gc-item {
  padding: 12px 16px 10px;
  border-bottom: 1px solid #f1f5f9;
}
.gc-item:last-child { border-bottom: none; }
.gc-item.gc-item-active { background: #fafbff; }

/* Cabeçalho do item */
.gc-item-head {
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px;
}
.gc-item-icon { font-size: .95rem; flex-shrink: 0; margin-top: 2px; }
.gc-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gc-item-name { font-size: .88rem; font-weight: 600; color: #1e293b; line-height: 1.3; }
.gc-item-name b { color: var(--ac, #3b82f6); font-weight: 700; }
.gc-item-note { font-size: .7rem; color: #94a3b8; font-style: italic; }
.gc-combo-line { display: block; font-style: normal; color: #64748b; margin-top: 2px; }
.gc-combo-ings { font-size: .65rem; padding-left: 8px; opacity: .85; }
.gc-combo-ings s { text-decoration-color: #ef4444; color: #ef4444; }
.gc-item-price { font-size: .78rem; font-weight: 600; color: #16a34a; }
.gc-item-badge {
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0;
}
.gc-item-status-dot {
  width: 8px; height: 8px; border-radius: 50%; align-self: flex-end;
}
.gc-item-status-dot.gc-item-pulse { animation: gc-pulse 1.8s ease-in-out infinite; }
@keyframes gc-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--ac, #3b82f6); transform: scale(1); }
  50%       { box-shadow: 0 0 0 5px transparent;      transform: scale(1.25); }
}
.gc-item-status-lbl { font-size: .72rem; font-weight: 700; white-space: nowrap; }
.gc-item-elapsed    { font-size: .65rem; color: #059669; font-weight: 600; }

/* Mini stepper horizontal */
.gc-mini-stepper {
  display: flex;
  background: #f8fafc; border-radius: 10px;
  padding: 8px 4px 6px;
  margin-bottom: 2px;
}
.gc-step { flex: 1; display: flex; flex-direction: column; align-items: center; }
.gc-step-row {
  display: flex; flex-direction: row; align-items: center;
  width: 100%; margin-bottom: 5px;
}
.gc-step-dot {
  width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0;
  background: #e2e8f0; border: 2px solid #cbd5e1;
  position: relative; z-index: 1;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.gc-step-line { flex: 1; height: 2px; background: #e2e8f0; transition: background .2s; }
.gc-step.done   .gc-step-dot  { background: #10b981; border-color: #10b981; }
.gc-step.done   .gc-step-line { background: #10b981; }
.gc-step.active .gc-step-dot  {
  background: #fff; border-color: var(--ac, #3b82f6);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac, #3b82f6) 20%, transparent);
}
.gc-step-lbl {
  font-size: .58rem; color: #94a3b8; text-align: center;
  font-weight: 500; line-height: 1.2; letter-spacing: .01em;
}
.gc-step.done   .gc-step-lbl { color: #059669; font-weight: 700; }
.gc-step.active .gc-step-lbl { color: var(--ac, #2563eb); font-weight: 700; }
.gc-step-ts {
  font-size: .56rem; color: #cbd5e1; text-align: center; margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.gc-step.done   .gc-step-ts { color: #10b981; }
.gc-step.active .gc-step-ts { color: var(--ac, #2563eb); }

/* Cancelar item */
.gc-reopened-badge {
  font-size: .73rem;
  font-weight: 600;
  color: #6b21a8;
  background: #f3e8ff;
  border-radius: 8px;
  padding: 5px 10px;
  margin-bottom: 6px;
  border-left: 3px solid #a855f7;
}
.gc-item-cancel-row { margin-top: 6px; }
.gc-item-cancel-btn {
  font-size: .72rem; color: #dc2626; background: #fee2e2;
  border: none; border-radius: 8px; padding: 5px 10px;
  cursor: pointer; font-weight: 600;
  transition: opacity .15s; -webkit-tap-highlight-color: transparent;
}
.gc-item-cancel-btn:active { opacity: .75; }
.gc-cancel-sent { font-size: .72rem; color: #94a3b8; font-weight: 500; }
.gc-item-pay-btn {
  font-size: .72rem; color: #fff; background: #0f172a;
  border: none; border-radius: 8px; padding: 5px 10px;
  cursor: pointer; font-weight: 600;
  transition: opacity .15s; -webkit-tap-highlight-color: transparent;
}
.gc-item-pay-btn:active { opacity: .75; }
.gc-pay-sent { font-size: .72rem; color: #0369a1; font-weight: 600; }

/* Observações */
.gc-notes {
  margin: 0 16px 8px;
  font-size: .77rem; color: #64748b;
  background: #fffbeb; border-radius: 8px;
  padding: 6px 10px; border-left: 3px solid #fbbf24;
}

/* Rodapé */
.gc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 14px; gap: 10px;
  border-top: 1px solid #f1f5f9;
}
.gc-avg-time { font-size: .73rem; color: #059669; font-weight: 600; }
.gc-footer-btns { display: flex; gap: 6px; align-items: center; }
.gc-btn {
  padding: 9px 14px; border-radius: 12px; border: none;
  font-size: .8rem; font-weight: 700; cursor: pointer;
  transition: opacity .15s, transform .1s; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; min-height: 38px;
}
.gc-btn:active { opacity: .8; transform: scale(.97); }
.gc-btn-pay  { background: #0f172a; color: #fff; }
.gc-btn-add  { background: #f1f5f9; color: #475569; }
.gc-btn-sent { background: #f1f5f9; color: #94a3b8; cursor: default; font-size: .74rem; }
.gc-pago-tag { font-size: .82rem; font-weight: 700; color: #059669; background: #d1fae5; padding: 7px 13px; border-radius: 20px; }

/* Outros da mesa — levemente suavizados */
.nv-section-others .gc-card { opacity: .88; transition: opacity .2s; }
.nv-section-others .gc-card:hover { opacity: 1; }

/* ── TIMELINE SCROLL WRAPPER (para sub-pedidos agrupados) ───── */
.trk-tl-wrap {
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
  padding-bottom: 2px;
}
.trk-tl-wrap::-webkit-scrollbar { height: 3px; }
.trk-tl-wrap::-webkit-scrollbar-track { background: transparent; }
.trk-tl-wrap::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }
.trk-timeline-sub {
  overflow-x: visible !important;
  width: max-content;
  min-width: 100%;
  margin-bottom: 0;
}

/* ── GROUPED ORDERS CARD ────────────────────────────────────── */
.trk-group-card .trk-card-top {
  border-radius: 0;
}
.trk-group-body {
  padding: 0 !important;
  gap: 0 !important;
}
.trk-suborder {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trk-suborder-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.trk-suborder-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 0 14px;
}
.trk-group-count {
  font-size: .72rem;
  font-weight: 700;
  color: rgba(0,0,0,.45);
  background: rgba(255,255,255,.45);
  border-radius: 20px;
  padding: 2px 9px;
  letter-spacing: .02em;
  border: 1px solid rgba(0,0,0,.08);
}
.trk-total-combined {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

/* ══════════════════════════════════════════════════════════════
   GC — SEÇÕES SEPARADAS: COZINHA vs BAR
   ══════════════════════════════════════════════════════════════ */

/* Seção wrapper */
.gc-section-bar {
  border-top: 2px solid #f1f5f9;
}

/* Cabeçalho de seção */
.gc-sec-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.gc-sec-hdr-kitchen {
  background: linear-gradient(90deg, #fff7ed 0%, #fff 60%);
  border-left: 4px solid #f97316;
}
.gc-sec-hdr-bar {
  background: linear-gradient(90deg, #f5f3ff 0%, #fff 60%);
  border-left: 4px solid #6366f1;
}
.gc-sec-hdr-icon  { font-size: .95rem; flex-shrink: 0; }
.gc-sec-hdr-title {
  flex: 1;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.gc-sec-hdr-kitchen .gc-sec-hdr-title { color: #c2410c; }
.gc-sec-hdr-bar     .gc-sec-hdr-title { color: #4338ca; }
.gc-sec-hdr-count {
  font-size: .66rem;
  font-weight: 700;
  color: #64748b;
  background: rgba(0,0,0,.07);
  border-radius: 20px;
  padding: 2px 8px;
  flex-shrink: 0;
}
.gc-sec-hdr-pill {
  font-size: .7rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 10px;
  flex-shrink: 0;
}

/* Body da seção */
.gc-section-body {
  display: flex;
  flex-direction: column;
}

/* Sub-cabeçalho de pedido (aparece só quando há múltiplos pedidos) */
.gc-order-subhdr {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 4px;
  border-top: 1px dashed #e2e8f0;
  margin-top: 4px;
}
.gc-order-subhdr:first-child { border-top: none; margin-top: 0; }
.gc-order-subhdr-num {
  font-size: .72rem;
  font-weight: 800;
  color: #475569;
  letter-spacing: .04em;
}
.gc-order-subhdr-pill {
  font-size: .6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: .04em;
}

/* ── Kitchen item (alias gc-item + tint próprio) ────────────── */
.gc-kitchen-item {
  padding: 12px 16px 10px;
  border-bottom: 1px solid #f1f5f9;
}
.gc-kitchen-item:last-child { border-bottom: none; }
.gc-kitchen-item.gc-item-active { background: #fffaf7; }

/* ── Bar item ─────────────────────────────────────────────────── */
.gc-bar-item {
  padding: 12px 16px 10px;
  border-bottom: 1px solid #f1f5f9;
}
.gc-bar-item:last-child { border-bottom: none; }
.gc-bar-item.gc-item-active   { background: #faf9ff; }
.gc-bar-item.gc-item-canceled { background: #fef2f2; opacity: .75; }

/* ── Bar stepper: apenas 2 passos (Pedido → Entregue) ───────── */
.gc-bar-stepper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 4px 0;
  gap: 0;
}
.gc-bar-step {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gc-bar-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #e2e8f0;
  border: 2px solid #cbd5e1;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.gc-bar-step.done   .gc-bar-dot {
  background: #10b981;
  border-color: #10b981;
}
.gc-bar-step.active .gc-bar-dot {
  background: #fff;
  border-color: var(--ac, #6366f1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac, #6366f1) 20%, transparent);
}
.gc-bar-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  transition: background .2s;
}
.gc-bar-step-line.done { background: #10b981; }
.gc-bar-step-labels {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  padding-bottom: 2px;
}
.gc-bar-step-labels span {
  font-size: .58rem;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.2;
}
.gc-bar-step-labels span:last-child {
  text-align: right;
  color: #64748b;
}

/* Paid tag */
.moc-pago-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  flex-shrink: 0;
}

/* ─── SALÃO PREMIUM LAYOUT OVERRIDES ───────────────────────────── */
.mesa-banner {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.rc-greeting {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5) !important;
  border: 1px solid #A7F3D0 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08) !important;
  border-radius: 16px !important;
}

.btn-salao-confirm {
  background: linear-gradient(135deg, #0F172A, #1E293B) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
  transition: all var(--t-fast, 150ms ease) !important;
}

.btn-salao-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25) !important;
}

.btn-solicitar-conta {
  background: linear-gradient(135deg, #EF4444, #DC2626) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25) !important;
  transition: all var(--t-fast, 150ms ease) !important;
}

.btn-solicitar-conta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35) !important;
}

.so-timeline-wrap {
  padding: 6px 0;
}

.so-card {
  background: var(--surface) !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: var(--shadow-s) !important;
  border-radius: var(--r-md, 14px) !important;
  transition: all var(--t-fast, 150ms ease) !important;
}

.so-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-m) !important;
}

.mesa-orders-notify {
  border-radius: 14px !important;
  box-shadow: var(--shadow-m) !important;
}

.mesa-status-screen {
  background: var(--bg) !important;
}

.mesa-status-header {
  background: linear-gradient(135deg, #0F172A, #1E293B) !important;
}

.moc-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-m) !important;
  transition: all var(--t-fast, 150ms ease) !important;
}

.moc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-l) !important;
}

.moc-notes {
  background: var(--surface2) !important;
  border-left: 3px solid var(--red) !important;
  color: var(--text2) !important;
}

.moc-action-btn.moc-action-cancel {
  background: linear-gradient(135deg, #FEE2E2, #FECACA) !important;
  color: #991B1B !important;
  border-radius: 10px !important;
}

.moc-action-btn.moc-action-pagar {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE) !important;
  color: #1E40AF !important;
  border-radius: 10px !important;
}

/* ─── CLIENT GROUPED ORDER TIMELINE (GC & NV) UX & DARK MODE IMPROVEMENTS ─── */
.nv-section-title {
  color: var(--text) !important;
}
.nv-section-hdr {
  border-bottom: 2px solid var(--border) !important;
}
.nv-section-count {
  background: var(--surface2) !important;
  color: var(--text2) !important;
}

.gc-card {
  background: var(--surface) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), 0 0 0 1px var(--border) !important;
  color: var(--text) !important;
}
.gc-card.gc-own {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08), 0 0 0 2px var(--ac) !important;
}
.gc-header {
  border-bottom: 1px solid var(--border) !important;
}
.gc-client-name {
  color: var(--text) !important;
}
.gc-client-meta {
  color: var(--muted) !important;
}
.gc-total {
  color: var(--text) !important;
}

.gc-group-label {
  background: var(--surface2) !important;
  color: var(--text2) !important;
  border-top: 1px solid var(--border) !important;
  border-bottom: 1px solid var(--border) !important;
}
.gc-group-label-bar {
  color: #818cf8 !important;
  background: color-mix(in srgb, #6366f1 10%, var(--surface)) !important;
  border-color: color-mix(in srgb, #6366f1 20%, var(--border)) !important;
}
.gc-kitchen-item {
  border-bottom: 1px solid var(--border) !important;
}
.gc-kitchen-item.gc-item-active {
  background: color-mix(in srgb, #f97316 6%, var(--surface)) !important;
}
.gc-bar-item {
  border-bottom: 1px solid var(--border) !important;
}
.gc-bar-item.gc-item-active {
  background: color-mix(in srgb, #3b82f6 6%, var(--surface)) !important;
}
.gc-bar-item.gc-item-canceled {
  background: color-mix(in srgb, #ef4444 8%, var(--surface)) !important;
}
.gc-item-name {
  color: var(--text) !important;
}
.gc-item-note, .gc-combo-line {
  color: var(--muted) !important;
}

.gc-mini-stepper {
  background: color-mix(in srgb, var(--border) 40%, var(--surface)) !important;
  border: 1px solid var(--border) !important;
}

/* Dots e Linhas Incompletos: visíveis mas indicando pendente */
.gc-step-dot, .gc-bar-dot {
  background: color-mix(in srgb, var(--muted) 30%, var(--surface)) !important;
  border-color: color-mix(in srgb, var(--muted) 45%, var(--surface)) !important;
}
.gc-step-line, .gc-bar-step-line {
  background: color-mix(in srgb, var(--muted) 35%, var(--surface)) !important;
}

/* Estados Concluídos (Done): verde esmeralda luminoso em ambos os temas */
.gc-step.done .gc-step-dot, .gc-bar-step.done .gc-bar-dot {
  background: var(--success, #10b981) !important;
  border-color: var(--success, #10b981) !important;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.25) !important;
}
.gc-step.done .gc-step-line, .gc-bar-step-line.done {
  background: var(--success, #10b981) !important;
}
.gc-step.done .gc-step-lbl {
  color: var(--success, #10b981) !important;
}
.gc-step.done .gc-step-ts {
  color: var(--success, #10b981) !important;
}

/* Estado Ativo: cor de acento vibrante azul com halo pulsante */
.gc-step.active .gc-step-dot, .gc-bar-step.active .gc-bar-dot {
  background: var(--surface) !important;
  border-color: var(--ac, #3b82f6) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac, #3b82f6) 30%, transparent), 0 0 10px var(--ac) !important;
}
.gc-step.active .gc-step-lbl {
  color: var(--ac, #3b82f6) !important;
}
.gc-step.active .gc-step-ts {
  color: var(--ac, #3b82f6) !important;
}

/* Labels e Time Stamps Pendentes */
.gc-step-lbl, .gc-bar-step-labels span {
  color: var(--muted) !important;
  font-weight: 600 !important;
}
.gc-step-ts {
  color: var(--muted) !important;
  opacity: 0.65;
}

.gc-order-subhdr {
  border-top: 1px dashed var(--border) !important;
}
.gc-order-subhdr-num {
  color: var(--text2) !important;
}
.gc-footer {
  border-top: 1px solid var(--border) !important;
  background: var(--surface) !important;
}

.gc-item-cancel-btn {
  background: color-mix(in srgb, #ef4444 12%, var(--surface)) !important;
  color: #f87171 !important;
  border: 1px solid color-mix(in srgb, #ef4444 20%, var(--border)) !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.2s !important;
}
.gc-item-cancel-btn:hover {
  background: #ef4444 !important;
  color: #fff !important;
}

.gc-item-pay-btn {
  background: color-mix(in srgb, #3b82f6 12%, var(--surface)) !important;
  color: #60a5fa !important;
  border: 1px solid color-mix(in srgb, #3b82f6 20%, var(--border)) !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.2s !important;
}
.gc-item-pay-btn:hover {
  background: #3b82f6 !important;
  color: #fff !important;
}

/* ─── TELA DE STATUS DE MESA RESPONSIVA NO DESKTOP ───────────────── */
.mesa-status-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--bg);
}

@media (min-width: 1024px) {
  .mesa-status-screen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2000 !important;
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .mesa-status-container {
    width: 90% !important;
    max-width: 860px !important;
    height: 85vh !important;
    max-height: 800px !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.45) !important;
    border: 1px solid var(--border) !important;
    background: var(--bg) !important;
    overflow: hidden !important;
    animation: mesaModalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
  }

  .mesa-status-header {
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
  }

  .mesa-status-footer {
    border-bottom-left-radius: 24px !important;
    border-bottom-right-radius: 24px !important;
  }
}

@keyframes mesaModalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

