/* PDV · estilos base do visual minimalista (Inter, slate, uma cor de marca). */
:root {
    --primary: #1e40af;
    --primary-hover: #1e3a8a;
    --primary-soft: #eff6ff;
    --ring: #bfdbfe;
    --text: #0f172a;
    --text-2: #475569;
    --text-3: #64748b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --danger: #b91c1c;
}

.num, .font-mono { font-variant-numeric: tabular-nums; }

/* Foco visível só para teclado (o caixa navega muito por teclado). */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px var(--ring); }

/* Navegação */
.nav-link { padding: 7px 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; transition: background .15s, color .15s; }
.nav-link:hover { background: #f1f5f9; color: var(--text); }
.nav-link.is-active { background: #f1f5f9; color: var(--text); font-weight: 600; }

/* Botões */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 9px; background: var(--primary); color: #fff; font-weight: 600; font-size: 14px; transition: background .15s; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text-2); font-weight: 500; font-size: 14px; }
.btn-secondary:hover { background: #f8fafc; color: var(--text); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 14px; }
.btn-ghost:hover { background: #f1f5f9; color: var(--text); }
.icon-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--text-3); }
.icon-btn:hover { background: #f1f5f9; color: var(--text); }

/* Teclas de atalho */
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; font-size: 11px; font-weight: 600; color: var(--text-2); background: #fff; line-height: 1; }
.kbd-dark { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 5px; background: rgba(255,255,255,.18); font-size: 11px; font-weight: 600; }

/* Campos */
.field-label { display: block; font-size: 13px; font-weight: 500; color: #334155; margin-bottom: 6px; }
.field { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: var(--text); font-size: 15px; }
.field::placeholder { color: #94a3b8; }
.field[readonly] { background: #f8fafc; }

/* Cartões */
.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; }

/* Controle segmentado (Presencial / Entrega) */
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #f1f5f9; border-radius: 10px; }
.seg-btn { height: 40px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--text-2); display: flex; align-items: center; justify-content: center; gap: 8px; }
.seg-btn.is-active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,.1); }

/* Botões de forma de pagamento */
.forma-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 72px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: #334155; font-size: 14px; font-weight: 600; transition: border-color .15s, background .15s; }
.forma-btn:hover { border-color: var(--border-strong); }
.forma-btn.is-active { border: 2px solid var(--primary); background: var(--primary-soft); color: var(--text); }

/* Animação discreta */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn .18s ease-out forwards; }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
