@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --font-ui: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Outfit", "Source Sans 3", sans-serif;

  --header-bg: #111827;
  --cat-active: #7c3aed;
  --pay-dinheiro: #16a34a;
  --pay-pix: #0891b2;
  --pay-cartao: #2563eb;
  --pay-outros: #7c3aed;
  --ok: #16a34a;
  --danger: #dc2626;
  --warn: #d97706;
  --accent: #2563eb;
  --surface: #f3f4f6;
  --card: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --radius: 10px;
}

* { box-sizing: border-box; }

body.pdv-page {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-ui);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Login — entrada do painel (premium) */
.login-page {
  min-height: 100vh;
  margin: 0;
  color: #e8f2ec;
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  background: #0a0c0b;
}
.login-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem 2rem;
  overflow: hidden;
}
.login-ambiance {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 420px at 12% 18%, rgba(31, 169, 113, 0.28), transparent 58%),
    radial-gradient(560px 380px at 88% 82%, rgba(31, 169, 113, 0.12), transparent 55%),
    linear-gradient(165deg, #111513 0%, #0a0c0b 48%, #0d1210 100%);
  pointer-events: none;
}
.login-ambiance::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(232, 242, 236, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 242, 236, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.login-wrap {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(232, 242, 236, 0.1);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(31, 169, 113, 0.08);
  animation: fadeUp 0.45s ease both;
}
.login-side {
  padding: 2.4rem 2.1rem 2.2rem;
  background:
    radial-gradient(320px 200px at 20% 0%, rgba(31, 169, 113, 0.22), transparent 70%),
    linear-gradient(165deg, #141a17, #0e1210);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 242, 236, 0.55);
}
.login-side-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}
.login-side-copy {
  margin: 0.85rem 0 1.35rem;
  color: rgba(232, 242, 236, 0.72);
  line-height: 1.5;
  font-size: 0.98rem;
  max-width: 28ch;
}
.login-side-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.login-side-points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: rgba(232, 242, 236, 0.78);
  font-weight: 500;
}
.login-side-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #1fa971;
  box-shadow: 0 0 0 3px rgba(31, 169, 113, 0.2);
}

.login-card {
  background: #fbfcfb;
  color: #0a0c0b;
  padding: 2.15rem 1.85rem 1.85rem;
  display: flex;
  flex-direction: column;
}
.login-card-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.35rem;
}
.login-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 30% 25%, #3dd492, #1fa971 55%, #0e3d2a);
  box-shadow: 0 8px 18px rgba(31, 169, 113, 0.35);
}
.login-brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #0a0c0b;
}
.login-sub {
  margin: 0.3rem 0 0;
  color: #6b756f;
  font-size: 0.92rem;
  line-height: 1.4;
}
.login-alert {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.9rem;
  font-weight: 600;
}
.login-field {
  display: block;
  margin-bottom: 0.95rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #5c675f;
}
.login-field span {
  display: block;
  margin-bottom: 0.35rem;
}
.login-field input {
  width: 100%;
  border: 1px solid #d5ddd7;
  border-radius: 12px;
  padding: 0.78rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #0a0c0b;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.login-field input::placeholder {
  color: #a3ada7;
  font-weight: 500;
}
.login-field input:focus {
  outline: none;
  border-color: rgba(31, 169, 113, 0.65);
  box-shadow: 0 0 0 3px rgba(31, 169, 113, 0.18);
}
.login-remember {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.15rem 0 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #5c675f;
  cursor: pointer;
  user-select: none;
}
.login-remember input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #1fa971;
  cursor: pointer;
}
.login-submit {
  width: 100%;
  margin-top: 0.35rem;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, #27c484, #1fa971);
  color: #04150e;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(31, 169, 113, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.login-submit:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(31, 169, 113, 0.34);
}
.login-submit:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(31, 169, 113, 0.22);
}
.login-demo {
  margin: 0.95rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #8a948e;
}
.login-demo strong {
  color: #3d4742;
  font-weight: 700;
}
.login-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.72rem 1rem;
  border: 1px solid #d5ddd7;
  border-radius: 12px;
  background: #fff;
  color: #3d4742;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.login-back-arrow {
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.22s ease;
}
.login-back:hover {
  color: #0e3d2a;
  border-color: rgba(31, 169, 113, 0.45);
  background: rgba(31, 169, 113, 0.08);
  box-shadow: 0 8px 18px rgba(31, 169, 113, 0.1);
  transform: translateY(-1px);
}
.login-back:hover .login-back-arrow { transform: translateX(-3px); }
.login-back:active { transform: translateY(0); box-shadow: none; }

@media (max-width: 780px) {
  .login-wrap {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .login-side {
    padding: 1.5rem 1.35rem 1.25rem;
  }
  .login-side-copy { max-width: none; }
  .login-side-points { display: none; }
  .login-card { padding: 1.6rem 1.35rem 1.4rem; }
}

/* Header escuro */
.pdv-header {
  background: var(--header-bg);
  color: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .65rem 1rem;
  flex-wrap: wrap;
}
.pdv-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .02em;
  line-height: 1.1;
  margin-right: 0;
}
.pdv-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .12rem;
  margin-right: .75rem;
}
.pdv-brand {
  display: inline-flex;
  line-height: 1;
  opacity: .9;
  text-decoration: none;
}
.pdv-brand:hover { opacity: 1; }
.pdv-brand img { display: block; height: 12px; width: auto; }
.pdv-header-left { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.pdv-nav { display: flex; gap: .2rem; flex-wrap: wrap; }
.pdv-nav a {
  color: #d1d5db;
  text-decoration: none;
  padding: .35rem .75rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
}
.pdv-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.pdv-nav a.active { background: rgba(124,58,237,.25); color: #e9d5ff; }
.pdv-header-right { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.pdv-header-right .meta { font-size: .84rem; color: #d1d5db; font-weight: 500; }
.pdv-header-right .meta.ok { color: #86efac; }
.pdv-header-right .meta.warn { color: #fcd34d; }
.btn-sair {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: #e5e7eb;
  border-radius: 8px;
  padding: .3rem .7rem;
  font-size: .84rem;
  font-weight: 600;
}
.btn-sair:hover { background: rgba(255,255,255,.08); }

/* Faixa do caixa — estilo mockup */
.caixa-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: .55rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.1rem;
  align-items: center;
  box-shadow: var(--shadow);
}
.caixa-chip {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 140px;
}
.caixa-chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.caixa-chip strong { display: block; font-size: .92rem; font-family: var(--font-display); }
.caixa-chip small { color: var(--muted); font-size: .75rem; }
.caixa-metric {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  padding: 0 .4rem;
  border-left: 1px solid var(--border);
}
.caixa-metric .label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  font-weight: 700;
}
.caixa-metric strong { font-size: .9rem; font-weight: 700; }
.caixa-metric.ok strong { color: var(--ok); }
.caixa-metric.info strong { color: var(--accent); }
.caixa-metric.danger strong { color: var(--danger); }
.caixa-metric.caixa-valor-sensivel strong.is-hidden {
  color: #9ca3af !important;
  letter-spacing: 0.12em;
  font-family: var(--font-display);
}
.btn-olho-caixa {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #4b5563;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
}
.btn-olho-caixa:hover {
  background: #f9fafb;
  color: var(--text);
}
.btn-olho-caixa .olho-icone {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}
.btn-olho-caixa .olho-icone svg { display: none; }
.btn-olho-caixa[aria-pressed="false"] .olho-fechado { display: block; }
.btn-olho-caixa[aria-pressed="true"] .olho-aberto { display: block; }
.btn-olho-caixa[aria-pressed="true"] {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}
.btn-fechar-caixa {
  margin-left: 0;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: .45rem .9rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
}
.btn-fechar-caixa:hover { background: #f9fafb; color: var(--text); }
.status-closed {
  color: #9a6408;
  font-weight: 700;
  background: #fff7ed;
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .82rem;
}
.abrir-caixa-form { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.abrir-caixa-form .form-select,
.abrir-caixa-form .form-control { width: auto; min-width: 120px; border-radius: 8px; }

.pdv-messages .alert { border: none; font-weight: 600; }

/* Layout principal */
.pdv-main {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 420px);
  gap: 0;
  flex: 1;
  min-height: 0;
  background: #fff;
}
.pdv-left {
  padding: .85rem 1rem;
  overflow: auto;
  background: #f9fafb;
  border-right: 1px solid var(--border);
}

.search-row {
  display: flex;
  gap: .55rem;
  align-items: stretch;
}
.search-wrap { flex: 1; position: relative; }
.search-wrap::before {
  content: "⌕";
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.1rem;
  pointer-events: none;
}
.barcode-input {
  font-size: 1rem !important;
  padding: .8rem 1rem .8rem 2.4rem !important;
  border: 1.5px solid #d1d5db !important;
  border-radius: 10px !important;
  background: #fff !important;
  font-weight: 500 !important;
}
.barcode-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
}
.btn-buscar-pdv {
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 0 1.15rem;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
}
.btn-buscar-pdv:hover:not(:disabled) {
  filter: brightness(1.05);
}
.btn-buscar-pdv:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.btn-produto-livre {
  border: 1.5px dashed #c4b5fd;
  background: #f5f3ff;
  color: #6d28d9;
  border-radius: 10px;
  padding: 0 .95rem;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .03em;
  white-space: nowrap;
}
.btn-produto-livre small { display: block; font-weight: 600; opacity: .7; }
.btn-produto-livre:disabled { opacity: .55; cursor: not-allowed; }

.categorias {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding: .75rem 0 .9rem;
  scrollbar-width: thin;
}
.cat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #111827 !important;
  border-radius: 10px;
  padding: .55rem 1.05rem;
  text-decoration: none !important;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  box-shadow: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.cat-btn:visited,
.cat-btn:link {
  color: #111827;
  text-decoration: none;
}
.cat-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
  color: #111827 !important;
  text-decoration: none !important;
}
.cat-btn.active {
  background: var(--cat-active);
  color: #fff !important;
  border-color: var(--cat-active);
  box-shadow: 0 4px 12px rgba(124,58,237,.28);
}
.cat-btn.active:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #fff !important;
}

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: .7rem;
  align-items: stretch;
}
.pdv-empty-busca {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 320px;
  padding: 2.75rem 1.75rem;
  margin: .35rem 0;
  overflow: hidden;
  border: 1px solid #e8e4d8;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(201, 162, 39, .12), transparent 65%),
    linear-gradient(165deg, #ffffff 0%, #faf8f3 55%, #f3f1ea 100%);
  box-shadow: 0 12px 32px rgba(17, 24, 39, .05);
  color: #6b7280;
  animation: fadeUp .4s ease both;
}
.pdv-empty-orb {
  width: 96px;
  height: 96px;
  margin-bottom: 1.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8a7350;
  background: linear-gradient(145deg, #fff 0%, #f5efe3 100%);
  border: 1px solid rgba(201, 162, 39, .28);
  box-shadow:
    0 10px 24px rgba(201, 162, 39, .12),
    inset 0 1px 0 rgba(255,255,255,.9);
}
.pdv-empty-kicker {
  margin: 0 0 .4rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a7350;
}
.pdv-empty-title {
  margin: 0 0 .65rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #111827;
  line-height: 1.1;
}
.pdv-empty-term {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .4rem .9rem;
  max-width: min(100%, 28rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(17, 24, 39, .05);
  border: 1px solid rgba(17, 24, 39, .06);
  color: #374151;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
}
.pdv-empty-sub {
  margin: 0 0 1.35rem;
  max-width: 28rem;
  font-size: .98rem;
  line-height: 1.5;
  color: #6b7280;
}
.pdv-empty-hint {
  margin: 1rem 0 0;
  font-size: .84rem;
  color: #9ca3af;
}
.btn-pdv-empty {
  border: none;
  border-radius: 12px;
  padding: .85rem 1.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .98rem;
  letter-spacing: .01em;
  color: #fff;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  box-shadow: 0 10px 22px rgba(17, 24, 39, .22);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn-pdv-empty:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(17, 24, 39, .28);
  color: #fff;
}
.btn-pdv-empty:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* Modal cadastro rápido */
.modal-rapido {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(17, 24, 39, .22);
}
.modal-rapido-header {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.25rem 1.3rem 1rem;
  background:
    radial-gradient(ellipse 80% 90% at 0% 0%, rgba(201, 162, 39, .16), transparent 55%),
    linear-gradient(180deg, #111827 0%, #1a2332 100%);
  color: #f9fafb;
}
.modal-rapido-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #e8c547, #c9a227);
  color: #111827;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(201, 162, 39, .35);
}
.modal-rapido-icon-warn {
  background: linear-gradient(145deg, #fb923c, #dc2626);
  color: #fff;
  box-shadow: 0 8px 18px rgba(220, 38, 38, .35);
}
.modal-rapido-icon-desc {
  background: linear-gradient(145deg, #e8c547, #c9a227);
  color: #111827;
  box-shadow: 0 8px 18px rgba(201, 162, 39, .35);
  font-size: 1.15rem;
}
.modal-desconto .desc-resumo {
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e8eef5;
  color: #334155;
  padding: .9rem 1rem;
  margin-bottom: 1rem;
  display: grid;
  gap: .5rem;
}
.desc-resumo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-size: .88rem;
  font-weight: 600;
  color: #64748b;
}
.desc-resumo-row strong {
  font-family: var(--font-display);
  font-weight: 800;
  color: #0f172a;
  font-size: 1rem;
}
.desc-resumo-row.is-desc strong { color: #b45309; }
.desc-resumo-row.is-total {
  padding-top: .55rem;
  border-top: 1px solid #e2e8f0;
  color: #334155;
}
.desc-resumo-row.is-total strong {
  font-size: 1.3rem;
  color: #15803d;
}
.desc-tipo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  margin-bottom: 1rem;
  padding: .3rem;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.desc-tipo-btn {
  border: none;
  background: transparent;
  border-radius: 9px;
  padding: .65rem .75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #64748b;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.desc-tipo-btn.is-active {
  background: #fff;
  color: #111827;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
}
.desc-tipo-btn:hover:not(.is-active) { color: #334155; }
.modal-desconto .btn-rapido-save {
  min-width: 150px;
}
.modal-rapido-copy { flex: 1; min-width: 0; padding-top: .1rem; }
.modal-rapido-kicker {
  margin: 0 0 .2rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #c9a227;
}
.modal-rapido-title {
  margin: 0 0 .35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.modal-rapido-sub {
  margin: 0;
  font-size: .9rem;
  line-height: 1.4;
  color: #9ca3af;
}
.modal-rapido-header .btn-close {
  filter: invert(1);
  opacity: .7;
  margin-top: .15rem;
}
.modal-rapido-header .btn-close:hover { opacity: 1; }
.modal-rapido-body {
  padding: 1.25rem 1.3rem 1rem;
  background: #fff;
}
.modal-rapido-field { margin-bottom: 1rem; }
.modal-rapido-field .form-label {
  font-weight: 700;
  font-size: .82rem;
  color: #4b5563;
  margin-bottom: .35rem;
}
.modal-rapido-body .form-control,
.modal-rapido-body .form-select {
  border-radius: 11px;
  border-color: #e5e7eb;
}
.modal-rapido-body .form-control:focus,
.modal-rapido-body .form-select:focus {
  border-color: rgba(201, 162, 39, .55);
  box-shadow: 0 0 0 .2rem rgba(201, 162, 39, .18);
}
.modal-rapido-code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-weight: 700;
  letter-spacing: .04em;
  background: #faf8f3 !important;
  color: #6f5a3a;
  border-color: #ece7db !important;
}
.modal-rapido-preco .input-group-text {
  border-radius: 11px 0 0 11px;
  background: #faf8f3;
  border-color: #e5e7eb;
  font-family: var(--font-display);
  font-weight: 800;
  color: #6f5a3a;
}
.modal-rapido-preco .form-control {
  border-radius: 0 11px 11px 0;
  font-weight: 700;
}
.modal-rapido-note {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .15rem;
}
.modal-rapido-note span {
  display: inline-flex;
  align-items: center;
  padding: .35rem .7rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  color: #64748b;
  font-size: .78rem;
  font-weight: 700;
}
.modal-rapido-erro {
  margin: .85rem 0 0;
  padding: .65rem .8rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: .88rem;
  font-weight: 700;
}
.modal-rapido-ok {
  text-align: left;
}
.modal-rapido-ok-msg {
  margin: 0 0 .85rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #166534;
}
.modal-rapido-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: #334155;
  font-weight: 600;
  line-height: 1.55;
}
.modal-rapido-icon-ok {
  background: linear-gradient(145deg, #4ade80, #16a34a);
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 163, 74, .35);
}
.pdv-estoque-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding: .7rem 1rem;
  background: #fff7ed;
  border-bottom: 1px solid #fdba74;
  color: #9a3412;
  font-size: .92rem;
}
.pdv-estoque-banner strong { font-weight: 800; }
.pdv-estoque-banner em { font-style: normal; font-weight: 800; }
.pdv-estoque-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .75rem;
}
.pdv-estoque-banner-hint {
  font-size: .8rem;
  font-weight: 600;
  color: #c2410c;
  opacity: .9;
}
.modal-rapido-footer {
  display: flex;
  justify-content: flex-end;
  gap: .55rem;
  flex-wrap: wrap;
  padding: .95rem 1.3rem 1.2rem;
  background: #fafafa;
  border-top: 1px solid #eef2f7;
}
.modal-rapido-footer .btn {
  border-radius: 10px;
  font-weight: 700;
  min-width: 110px;
  padding: .7rem 1rem;
}
.btn-rapido-save {
  border: none;
  color: #111827;
  background: linear-gradient(180deg, #e8c547, #c9a227);
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(201, 162, 39, .28);
}
.btn-rapido-save:hover {
  color: #111827;
  filter: brightness(1.04);
}

.pdv-grade-hint {
  margin: .65rem 0 0;
  font-size: .8rem;
  font-weight: 600;
  color: #6b7280;
}
.produto-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .55rem .55rem .65rem;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.produto-card:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  border-color: #c7d2fe;
}
.produto-card:disabled { opacity: .5; cursor: not-allowed; }
.produto-codigo {
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .03em;
  margin-bottom: .35rem;
}
.produto-foto {
  aspect-ratio: 1 / 1;
  width: 100%;
  margin: 0 0 .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.produto-foto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: .4rem;
  display: block;
}
.produto-nome {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.2;
  flex: 1;
}
.produto-desc { color: var(--muted); font-size: .72rem; margin-top: .15rem; }
.produto-preco {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  margin-top: .4rem;
  font-size: 1.05rem;
}
.produto-estoque { color: var(--muted); font-size: .72rem; margin-top: .1rem; font-weight: 600; }

/* Carrinho direita */
.pdv-right {
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--border);
}
.carrinho-head {
  background: #374151;
  color: #fff;
  padding: .7rem .9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.carrinho-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .1em;
  font-weight: 800;
}
.carrinho-venda-id {
  margin-top: .2rem;
  font-size: .78rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: .02em;
}
.carrinho-count {
  font-size: .75rem;
  background: rgba(255,255,255,.15);
  padding: .2rem .55rem;
  border-radius: 999px;
  font-weight: 700;
}

.pdv-retomada-banner {
  margin: .65rem .75rem 0;
  padding: .75rem .85rem;
  border-radius: 10px;
  border: 1px solid #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  display: grid;
  gap: .25rem;
  animation: pdvBannerIn 320ms ease both;
}
.pdv-retomada-banner strong {
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .01em;
}
.pdv-retomada-banner span {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  color: #78350f;
}
@keyframes pdvBannerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.itens-lista {
  flex: 1;
  overflow: auto;
  background: #fff;
  min-height: 140px;
}
.itens-table-head {
  display: grid;
  grid-template-columns: 1.4fr 1fr .8fr .8fr 28px;
  gap: .25rem;
  padding: .45rem .75rem;
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.itens-vazio {
  color: var(--muted);
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: .92rem;
  font-weight: 600;
}
.vazio-ico { font-size: 1.6rem; margin-bottom: .4rem; opacity: .55; }

.item-linha {
  display: grid;
  grid-template-columns: 1.4fr 1fr .8fr .8fr 28px;
  gap: .25rem;
  align-items: center;
  padding: .65rem .75rem;
  border-bottom: 1px solid #f3f4f6;
  animation: slideIn .18s ease both;
}
.item-nome {
  font-weight: 700;
  font-size: .86rem;
  line-height: 1.2;
}
.item-acoes { display: flex; align-items: center; gap: .2rem; }
.item-unit {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
  border: 1px dashed transparent;
  background: transparent;
  border-radius: 8px;
  padding: .2rem .35rem;
  cursor: pointer;
  text-align: right;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.item-unit:hover {
  color: var(--accent, #2563eb);
  border-color: #bfdbfe;
  background: #eff6ff;
}
.item-unit.is-zero {
  color: #b91c1c;
  border-color: #fca5a5;
  background: #fef2f2;
  font-weight: 800;
}
.item-total {
  font-weight: 800;
  font-family: var(--font-display);
  font-size: .9rem;
}
.qtd-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  font-weight: 800;
  color: var(--text);
}
.qtd-btn:hover { background: #eff6ff; border-color: #bfdbfe; }
.qtd-btn.lg { width: 40px; height: 40px; font-size: 1.2rem; }
.qtd-valor {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 800;
  font-size: .88rem;
}
.btn-excluir {
  border: none;
  background: transparent;
  color: var(--danger);
  font-size: .95rem;
  line-height: 1;
  opacity: .8;
  padding: 0;
}
.btn-excluir:hover { opacity: 1; }

.carrinho-footer {
  border-top: 1px solid var(--border);
  padding: .75rem .85rem .9rem;
  background: #fff;
}
.totais { margin-bottom: .55rem; }
.linha-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .2rem 0;
  color: #4b5563;
  font-weight: 600;
  font-size: .9rem;
}
.desconto-linha { margin: .15rem 0 .35rem; }
.btn-aplicar-desconto {
  border: 1px dashed #c4b5fd;
  background: #f5f3ff;
  color: #6d28d9;
  border-radius: 7px;
  padding: .28rem .55rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .03em;
}
.btn-aplicar-desconto:disabled { opacity: .45; }

.total-destaque {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .35rem 0 .15rem;
}
.total-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .06em;
  color: var(--text);
}
.total-valor {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--ok);
  letter-spacing: -.02em;
  line-height: 1;
}

.pagamentos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  margin: .7rem 0 .65rem;
}
.pay-btn {
  border: none;
  border-radius: 10px;
  padding: .75rem .45rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  font-family: var(--font-display);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.pay-btn strong { font-size: .82rem; letter-spacing: .04em; }
.pay-btn small { font-size: .68rem; opacity: .85; font-weight: 600; }
.pay-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.pay-btn:disabled { opacity: .4; cursor: not-allowed; }
.pay-btn.active { box-shadow: 0 0 0 3px rgba(17,24,39,.18), 0 8px 18px rgba(0,0,0,.12); transform: translateY(-1px); }
.pay-dinheiro { background: var(--pay-dinheiro); }
.pay-pix { background: var(--pay-pix); }
.pay-cartao { background: var(--pay-cartao); }
.pay-outros { background: var(--pay-outros); }
.pay-dividido {
  grid-column: 1 / -1;
  background: #4b5563;
  flex-direction: row;
  justify-content: center;
  gap: .4rem;
}

.btn-finalizar {
  width: 100%;
  border: none;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .05em;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(22,163,74,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
}
.btn-finalizar small {
  font-size: .75rem;
  opacity: .85;
  font-weight: 700;
  background: rgba(0,0,0,.12);
  padding: .15rem .4rem;
  border-radius: 6px;
}
.btn-finalizar:disabled {
  background: #86efac;
  box-shadow: none;
  cursor: not-allowed;
}
.btn-finalizar:not(:disabled):hover { filter: brightness(1.04); }

/* Atalhos */
.pdv-atalhos {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  padding: .45rem 1rem;
  border-top: 1px solid var(--border);
  background: #fff;
}
.atalho {
  border: 1px solid var(--border);
  background: #f9fafb;
  color: #4b5563;
  border-radius: 8px;
  padding: .35rem .65rem;
  font-size: .75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.atalho small {
  background: #e5e7eb;
  color: #374151;
  border-radius: 4px;
  padding: .05rem .3rem;
  font-size: .65rem;
  font-weight: 800;
}
.atalho.danger { color: var(--danger); border-color: #fecaca; background: #fef2f2; }
.atalho:disabled { opacity: .4; }
.atalho.cliente-tag { cursor: default; background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

.pdv-statusbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: #111827;
  color: #9ca3af;
  font-size: .72rem;
  font-weight: 600;
  padding: .35rem 1rem;
}
.pdv-statusbar .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: .25rem;
}
.pdv-statusbar .dot.offline { background: #ef4444; }

.qtd-controle { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.qtd-controle input { max-width: 90px; border-radius: 10px; }

.modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,.2);
}
.modal-body { padding: 1.35rem; }
.modal-body h5 { font-family: var(--font-display); font-weight: 800; }

/* Modais de pagamento */
.modal-pay {
  overflow: hidden;
}
.modal-pay-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 0.85rem;
  border-bottom: 1px solid #eef2f7;
}
.modal-pay-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #111827;
}
.modal-pay-sub {
  margin: .2rem 0 0;
  color: #6b7280;
  font-size: .85rem;
  font-weight: 500;
}
.modal-pay-body {
  padding: 1.15rem 1.25rem;
}
.modal-pay-footer {
  display: flex;
  justify-content: flex-end;
  gap: .55rem;
  padding: .9rem 1.25rem 1.15rem;
  border-top: 1px solid #eef2f7;
  background: #f9fafb;
}
.modal-pay-footer .btn {
  min-width: 110px;
  font-weight: 700;
}
.modal-pay-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  margin-bottom: 1rem;
}
.modal-pay-total span {
  font-size: .82rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.modal-pay-total strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}
.modal-pay-troco {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem .9rem;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.modal-pay-troco span { font-weight: 700; }
.modal-pay-troco strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
}
.modal-pay-troco.is-falta {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.modal-pay-hint {
  color: #6b7280;
  font-size: .9rem;
  line-height: 1.4;
}
.modal-pay-cartao-ops {
  display: grid;
  gap: .65rem;
}
.btn-cartao-op {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  width: 100%;
  text-align: left;
  border: 1.5px solid #dbe3f0;
  background: #fff;
  border-radius: 12px;
  padding: .9rem 1rem;
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.btn-cartao-op strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #111827;
}
.btn-cartao-op span {
  font-size: .82rem;
  color: #6b7280;
  font-weight: 500;
}
.btn-cartao-op:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 16px rgba(37,99,235,.12);
  transform: translateY(-1px);
}
.dividido-linha .form-label {
  font-weight: 700;
  font-size: .82rem;
  color: #374151;
}
.dividido-soma {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem .9rem;
  border-radius: 10px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}
.dividido-soma span { font-weight: 700; color: #4b5563; }
.dividido-soma strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
}
.dividido-soma.is-ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.dividido-soma.is-ok strong { color: #065f46; }
.dividido-soma.is-bad {
  background: #fef2f2;
  border-color: #fecaca;
}
.dividido-soma.is-bad strong { color: #b91c1c; }
.dividido-aviso {
  margin: .55rem 0 0;
  color: #b91c1c;
  font-size: .82rem;
  font-weight: 600;
}

.pix-loading {
  text-align: center;
  color: #6b7280;
  font-weight: 600;
  padding: 1rem 0;
}
.pix-qr-wrap {
  display: flex;
  justify-content: center;
  padding: .5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.pix-qr-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}
.pix-copia-row {
  display: flex;
  gap: .45rem;
}
.pix-copia-row .form-control {
  font-size: .78rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(6px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 1100px) {
  .itens-table-head,
  .item-linha { grid-template-columns: 1.3fr .9fr .7fr .7fr 28px; }
}
@media (max-width: 992px) {
  .pdv-main { grid-template-columns: 1fr; }
  .pdv-left { border-right: none; }
  .pdv-right { border-left: none; border-top: 1px solid var(--border); min-height: 520px; }
  .btn-fechar-caixa { margin-left: 0; }
}

/* Modal cliente no PDV */
.cli-pdv-lista {
  max-height: 180px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.cli-pdv-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  width: 100%;
  text-align: left;
  border: 1px solid #e5e7eb;
  background: #faf8f3;
  border-radius: 10px;
  padding: .55rem .7rem;
  transition: border-color .15s ease, background .15s ease;
}
.cli-pdv-item:hover {
  border-color: rgba(201, 162, 39, .55);
  background: #fff;
}
.cli-pdv-item strong {
  font-family: var(--font-display);
  font-size: .92rem;
}
.cli-pdv-item small { color: var(--muted); }
.cli-pdv-vazio {
  color: var(--muted);
  font-size: .88rem;
  padding: .35rem .15rem;
}
.cli-pdv-selecionado {
  padding: .75rem .85rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, .35);
  background: linear-gradient(180deg, rgba(201, 162, 39, .1), rgba(201, 162, 39, .03));
}
.cli-pdv-selecionado strong {
  font-family: var(--font-display);
  font-size: 1rem;
}
