/* ==========================================================================
   Sistema de Vendas — estilos
   Pensado para tablet (toque), celular e computador. Botões grandes, alto contraste.
   ========================================================================== */
:root {
  --bg: #f4f3ef;
  --card: #ffffff;
  --card-2: #faf9f6;
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #8a847e;
  --line: #e7e4de;
  --line-2: #d6d3cd;

  --brand: #15803d;
  --brand-600: #16a34a;
  --brand-900: #14532d;
  --brand-soft: #dcfce7;
  --brand-soft-2: #f0fdf4;

  --blue: #2563eb;  --blue-soft: #dbeafe;  --blue-ink: #1e3a8a;
  --orange: #ea580c; --orange-soft: #ffedd5; --orange-ink: #9a3412;
  --violet: #7c3aed; --violet-soft: #ede9fe; --violet-ink: #4c1d95;
  --red: #dc2626;   --red-soft: #fee2e2;   --red-ink: #991b1b;
  --amber: #d97706; --amber-soft: #fef3c7; --amber-ink: #92400e;
  --teal: #0d9488;  --teal-soft: #ccfbf1;

  --r: 16px;
  --r-sm: 12px;
  --sombra: 0 1px 2px rgba(28, 25, 23, .05), 0 2px 8px rgba(28, 25, 23, .04);
  --sombra-2: 0 10px 30px rgba(28, 25, 23, .14), 0 2px 6px rgba(28, 25, 23, .08);
  --topbar: 60px;
  --bottomnav: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: 16px;
  --fonte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--fonte);
  font-size: 16px; line-height: 1.45; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s18 { width: 18px; height: 18px; }
svg.i.s28 { width: 28px; height: 28px; }
svg.i.s34 { width: 34px; height: 34px; }

/* ------------------------------------------------------------------ splash */
.splash { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--ink-2); }
.splash-logo { width: 72px; height: 72px; border-radius: 20px; background: url(../img/icone-192.png) center/cover; box-shadow: var(--sombra-2); animation: pulsar 1.2s ease-in-out infinite; }
@keyframes pulsar { 50% { transform: scale(.94); opacity: .8; } }

/* ------------------------------------------------------------------ layout */
.app { min-height: 100vh; }
.sidebar { display: none; }
.main { min-width: 0; padding-bottom: calc(var(--bottomnav) + var(--safe-b) + 12px); }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar);
  display: flex; align-items: center; gap: 6px; padding: 0 8px 0 var(--gutter);
  background: rgba(244, 243, 239, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.rolou { border-bottom-color: var(--line); }
.topbar .tb-voltar { margin-left: -8px; }
.tb-titulo { flex: 1; min-width: 0; font-size: 20px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.tb-acoes { display: flex; gap: 4px; align-items: center; }
.conteudo { padding: 4px var(--gutter) 24px; max-width: 1240px; margin: 0 auto; }
.conteudo.largo { max-width: 1480px; }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--bottomnav) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.04);
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 650; color: var(--ink-3); }
.bottomnav a.ativo { color: var(--brand); }
.bottomnav a .bn-ic { width: 46px; height: 30px; display: grid; place-items: center; border-radius: 99px; transition: background .15s; }
.bottomnav a.ativo .bn-ic { background: var(--brand-soft); }
.bottomnav a.bn-vender .bn-ic { width: 54px; height: 54px; margin-top: -22px; background: var(--brand); color: #fff; border-radius: 18px; box-shadow: 0 6px 16px rgba(21,128,61,.35); border: 3px solid #fff; }
.bottomnav a.bn-vender { color: var(--brand); }

@media (min-width: 700px) {
  :root { --gutter: 24px; }
  body { font-size: 17px; }
}
@media (min-width: 1000px) {
  .app { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .sidebar {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: var(--brand-900); color: #e7f5ec; padding: 18px 12px;
  }
  .side-brand { display: flex; gap: 12px; align-items: center; padding: 4px 8px 18px; }
  .side-brand .logo { width: 40px; height: 40px; border-radius: 12px; background: url(../img/icone-192.png) center/cover; flex: none; }
  .side-brand b { display: block; font-size: 15px; color: #fff; line-height: 1.2; }
  .side-brand small { color: #9fd3b2; font-size: 12.5px; }
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
  .side-nav .grupo { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: #86c49e; padding: 14px 12px 6px; font-weight: 700; }
  .side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 600; font-size: 15.5px; color: #d6eedf; }
  .side-nav a:hover { background: rgba(255,255,255,.07); }
  .side-nav a.ativo { background: #fff; color: var(--brand-900); }
  .side-nav a.vender { background: var(--brand-600); color: #fff; margin: 4px 0 8px; padding: 13px 12px; font-size: 16.5px; }
  .side-nav a.vender:hover { background: #22c55e; }
  .side-nav a .cont { margin-left: auto; background: rgba(255,255,255,.16); color: #fff; font-size: 12px; padding: 1px 8px; border-radius: 99px; }
  .side-nav a.ativo .cont { background: var(--red-soft); color: var(--red-ink); }
  .side-user { margin-top: auto; padding: 14px 8px 4px; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 10px; font-size: 14px; }
  .side-user .avatar { background: rgba(255,255,255,.14); color: #fff; }
  .side-user button { margin-left: auto; color: #b9e2c9; }
  .bottomnav { display: none; }
  .main { padding-bottom: 24px; }
  .topbar { height: 68px; padding: 0 var(--gutter); }
  .tb-titulo { font-size: 23px; }
}

/* ------------------------------------------------------------------ tipografia e utilidades */
.muted { color: var(--ink-2); }
.fraco { color: var(--ink-3); }
.small { font-size: 14px; }
.xs { font-size: 12.5px; }
.b { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.verde { color: var(--brand); }
.vermelho { color: var(--red); }
.laranja { color: var(--orange); }
.azul { color: var(--blue); }
.ambar { color: var(--amber-ink); }
.centro { text-align: center; }
.direita { text-align: right; }
.titulo-sec { font-size: 18px; font-weight: 750; margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.titulo-sec .acao { margin-left: auto; font-size: 15px; font-weight: 650; color: var(--brand); }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stack > * { min-width: 0; }
.stack.s8 { gap: 8px; }
.stack.s16 { gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.entre { justify-content: space-between; }
.row.topo { align-items: flex-start; }
.flex1 { flex: 1; min-width: 0; }
.mt0 { margin-top: 0 !important; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid { gap: 16px; } }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.so-mobile { }
.so-largo { display: none !important; }
@media (min-width: 1000px) { .so-mobile { display: none !important; } .so-largo { display: initial !important; } }
.cols-2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .cols-2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }

/* ------------------------------------------------------------------ cartões */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sombra); }
.card-b { padding: 16px; }
.card-h { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.card-h h3 { font-size: 17px; font-weight: 750; flex: 1; }
.card.link { display: block; transition: transform .08s, box-shadow .15s; }
.card.link:active { transform: scale(.985); }
@media (hover: hover) { .card.link:hover { box-shadow: var(--sombra-2); } }
.card.destaque { border-color: transparent; }
.card.d-verde { background: var(--brand-soft-2); border-color: #bbf7d0; }
.card.d-vermelho { background: #fff7f7; border-color: #fecaca; }
.card.d-laranja { background: #fff8f1; border-color: #fed7aa; }
.card.d-azul { background: #f5f8ff; border-color: #bfdbfe; }
.card.d-ambar { background: #fffbeb; border-color: #fde68a; }

/* KPIs */
.kpi { padding: 14px 16px; }
.kpi-label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.kpi-valor { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-valor.md { font-size: 22px; }
.kpi-sub { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
@media (min-width: 700px) { .kpi-valor { font-size: 30px; } .kpi-valor.md { font-size: 24px; } }

/* atalhos grandes da tela inicial */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 118px; padding: 16px; border-radius: 20px; color: #fff; font-weight: 750; font-size: 19px;
  box-shadow: 0 6px 18px rgba(0,0,0,.10); transition: transform .08s; overflow: hidden;
}
.tile:active { transform: scale(.97); }
.tile .t-ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.tile .t-ic svg.i { width: 28px; height: 28px; }
.tile small { display: block; font-size: 13px; font-weight: 600; opacity: .9; margin-top: 2px; }
.tile::after { content: ""; position: absolute; right: -26px; top: -26px; width: 96px; height: 96px; border-radius: 50%; background: rgba(255,255,255,.1); }
.t-verde { background: linear-gradient(140deg, #16a34a, #15803d); }
.t-azul { background: linear-gradient(140deg, #3b82f6, #1d4ed8); }
.t-laranja { background: linear-gradient(140deg, #f97316, #c2410c); }
.t-roxo { background: linear-gradient(140deg, #8b5cf6, #6d28d9); }

/* ------------------------------------------------------------------ botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: 14px; border: 1.5px solid transparent; font-weight: 700; font-size: 16px; cursor: pointer; user-select: none;
  background: var(--card); color: var(--ink); border-color: var(--line-2); transition: transform .06s, background .15s, opacity .15s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-primario { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primario:hover { background: #166534; }
.btn-azul { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-laranja { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-roxo { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn-perigo { background: #fff; color: var(--red); border-color: #fecaca; }
.btn-perigo.cheio { background: var(--red); border-color: var(--red); color: #fff; }
.btn-whats { background: #25d366; border-color: #25d366; color: #fff; }
.btn-suave { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-900); }
.btn-fantasma { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-fantasma:hover { background: rgba(0,0,0,.04); }
.btn-lg { min-height: 58px; font-size: 18px; border-radius: 16px; padding: 0 22px; }
.btn-xl { min-height: 64px; font-size: 20px; border-radius: 18px; }
.btn-sm { min-height: 38px; font-size: 14.5px; padding: 0 12px; border-radius: 11px; }
.btn-bloco { width: 100%; }
.btn-ic { width: 46px; min-width: 46px; padding: 0; min-height: 46px; border-radius: 14px; background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ic:hover { background: rgba(0,0,0,.05); }
.btn-ic.cheio { background: var(--card); border-color: var(--line); }
.acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.acoes > .btn { flex: 1 1 auto; }
.acoes-fixas {
  position: sticky; bottom: calc(var(--bottomnav) + var(--safe-b) + 8px); z-index: 20; margin-top: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--sombra-2);
  display: flex; gap: 10px; align-items: center;
}
@media (min-width: 1000px) { .acoes-fixas { bottom: 12px; } }

.fab {
  position: fixed; right: 18px; bottom: calc(var(--bottomnav) + var(--safe-b) + 16px); z-index: 35;
  height: 58px; padding: 0 22px 0 18px; border-radius: 20px; border: 0; background: var(--brand); color: #fff; font-weight: 750; font-size: 17px;
  display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 10px 24px rgba(21,128,61,.35); cursor: pointer;
}
.fab:active { transform: scale(.96); }
@media (min-width: 1000px) { .fab { bottom: 24px; right: 28px; } }

/* ------------------------------------------------------------------ formulários */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > label, .rotulo { font-weight: 650; font-size: 14.5px; color: var(--ink-2); }
.campo .ajuda { font-size: 13px; color: var(--ink-3); }
.campo .erro-msg { font-size: 13.5px; color: var(--red); font-weight: 600; }
.campo.com-erro .input { border-color: var(--red); background: #fffafa; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: #fff;
  font-size: 17px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2357534e' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
.input::placeholder, .textarea::placeholder { color: #b3ada6; }
.input.dinheiro { font-weight: 750; font-size: 22px; font-variant-numeric: tabular-nums; }
.input.dinheiro.grande { font-size: 30px; min-height: 64px; text-align: center; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .form-grid.duas { grid-template-columns: 1fr 1fr; } .form-grid .inteira { grid-column: 1 / -1; } }
.busca { position: relative; }
.busca svg.i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.busca .input { padding-left: 46px; padding-right: 52px; border-radius: 14px; }
.busca .busca-acao { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.busca-fixa { position: sticky; top: var(--topbar); z-index: 20; background: var(--bg); padding: 6px 0 10px; }
@media (min-width: 1000px) { .busca-fixa { top: 68px; } }

/* interruptor */
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px 0; min-height: 48px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .trilho { width: 52px; height: 32px; border-radius: 99px; background: #d6d3cd; position: relative; flex: none; transition: background .2s; }
.toggle .trilho::after { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.toggle input:checked + .trilho { background: var(--brand); }
.toggle input:checked + .trilho::after { transform: translateX(20px); }
.toggle .t-txt b { display: block; font-weight: 650; }
.toggle .t-txt small { color: var(--ink-3); font-size: 13.5px; }

/* controle segmentado */
.seg { display: flex; background: #ebe9e4; border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-height: 44px; border: 0; background: transparent; border-radius: 11px; font-weight: 650; font-size: 15px; color: var(--ink-2); cursor: pointer; padding: 0 10px; white-space: nowrap; }
.seg button.ativo { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* chips (filtros) */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line-2); background: #fff; font-weight: 650; font-size: 15px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip.ativo { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { background: rgba(0,0,0,.08); border-radius: 99px; padding: 0 7px; font-size: 12.5px; }
.chip.ativo .n { background: rgba(255,255,255,.2); }

/* passo a passo (quantidade) */
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; overflow: hidden; }
.stepper button { width: 46px; height: 46px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.stepper button:active { background: var(--brand-soft); }
.stepper button:disabled { color: #ccc; }
.stepper input { width: 52px; height: 46px; border: 0; text-align: center; font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper.lg button { width: 56px; height: 56px; }
.stepper.lg input { width: 64px; height: 56px; font-size: 22px; }

/* ------------------------------------------------------------------ listas */
.lista { display: flex; flex-direction: column; }
.lista.cartao { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sombra); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; min-height: 64px; border-bottom: 1px solid var(--line); background: var(--card); width: 100%; text-align: left; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; }
.item:last-child { border-bottom: 0; }
.item:active { background: var(--card-2); }
@media (hover: hover) { a.item:hover, button.item:hover { background: var(--card-2); } }
.item-main { flex: 1; min-width: 0; }
.item-titulo { font-weight: 700; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.item-dir { text-align: right; flex: none; }
.item-dir .valor { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item .seta { color: var(--ink-3); flex: none; }
.item.riscado .item-titulo, .item.riscado .valor { text-decoration: line-through; color: var(--ink-3); }

.avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; background: var(--brand-soft); color: var(--brand-900); }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; border-radius: 20px; }
.avatar.c1 { background: #dbeafe; color: #1e40af; } .avatar.c2 { background: #fce7f3; color: #9d174d; } .avatar.c3 { background: #ffedd5; color: #9a3412; }
.avatar.c4 { background: #ede9fe; color: #5b21b6; } .avatar.c5 { background: #ccfbf1; color: #115e59; } .avatar.c6 { background: #fef3c7; color: #92400e; }
.avatar.ic { background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line); }

/* selos */
.selo { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 750; white-space: nowrap; background: #eeece7; color: var(--ink-2); line-height: 1.6; }
.selo.verde { background: var(--brand-soft); color: var(--brand-900); }
.selo.vermelho { background: var(--red-soft); color: var(--red-ink); }
.selo.laranja { background: var(--orange-soft); color: var(--orange-ink); }
.selo.azul { background: var(--blue-soft); color: var(--blue-ink); }
.selo.ambar { background: var(--amber-soft); color: var(--amber-ink); }
.selo.roxo { background: var(--violet-soft); color: var(--violet-ink); }

/* avisos */
.aviso { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid; font-size: 15px; }
.aviso svg.i { margin-top: 1px; }
.aviso .flex1 b { display: block; }
.aviso.info { background: #f5f8ff; border-color: #bfdbfe; color: var(--blue-ink); }
.aviso.atencao { background: #fffbeb; border-color: #fde68a; color: var(--amber-ink); }
.aviso.perigo { background: #fff5f5; border-color: #fecaca; color: var(--red-ink); }
.aviso.ok { background: var(--brand-soft-2); border-color: #bbf7d0; color: var(--brand-900); }
.aviso .btn { margin-left: auto; }

.vazio { text-align: center; padding: 40px 20px; color: var(--ink-2); }
.vazio .v-ic { width: 72px; height: 72px; border-radius: 22px; background: #ebe9e4; display: grid; place-items: center; margin: 0 auto 14px; color: var(--ink-3); }
.vazio .v-ic svg.i { width: 34px; height: 34px; }
.vazio b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.vazio .btn { margin-top: 16px; }

.carregando { padding: 40px; display: grid; place-items: center; }
.giro { width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid #d6d3cd; border-top-color: var(--brand); animation: girar .7s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.esqueleto { background: linear-gradient(90deg, #ecebe6 25%, #f5f4f0 50%, #ecebe6 75%); background-size: 200% 100%; animation: brilho 1.2s infinite; border-radius: 12px; }
@keyframes brilho { to { background-position: -200% 0; } }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15.5px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.kv .total { font-size: 20px; font-weight: 800; color: var(--ink); }
.divisor { height: 1px; background: var(--line); margin: 12px 0; border: 0; }

.barra-prog { height: 12px; border-radius: 99px; background: #e9e7e1; overflow: hidden; }
.barra-prog > i { display: block; height: 100%; border-radius: 99px; background: var(--brand-600); transition: width .5s; }
.barra-prog.fina { height: 8px; }

/* tabelas */
.tabela-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tabela { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabela th { text-align: left; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 10px 12px; background: var(--card-2); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
.tabela td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela tfoot td { font-weight: 800; background: var(--card-2); border-top: 1.5px solid var(--line-2); }
.tabela tbody tr.clicavel { cursor: pointer; }
.tabela tbody tr.clicavel:hover { background: var(--card-2); }
@media (max-width: 699px) {
  table.tabela.responsiva thead { display: none; }
  table.tabela.responsiva, .tabela.responsiva tbody, .tabela.responsiva tr, .tabela.responsiva td, .tabela.responsiva tfoot { display: block; width: 100%; }
  .tabela.responsiva tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .tabela.responsiva td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tabela.responsiva td::before { content: attr(data-l); color: var(--ink-2); font-size: 13.5px; text-align: left; font-weight: 600; }
  .tabela.responsiva td:first-child { font-weight: 750; font-size: 16px; text-align: left; }
  .tabela.responsiva td:first-child::before { display: none; }
  .tabela.responsiva tfoot tr { background: var(--card-2); }
}

/* ------------------------------------------------------------------ painel lateral / folha (sheet) */
.folha-fundo { position: fixed; inset: 0; z-index: 100; background: rgba(28,25,23,.45); display: flex; align-items: flex-end; justify-content: center; animation: aparecer .18s ease-out; }
.folha {
  width: 100%; max-height: 94vh; max-height: 94dvh; background: var(--bg); border-radius: 22px 22px 0 0; display: flex; flex-direction: column;
  box-shadow: var(--sombra-2); animation: subir .24s cubic-bezier(.2,.8,.2,1); overflow: hidden;
}
.folha.cheia { height: 100vh; height: 100dvh; max-height: none; border-radius: 0; }
.folha-h { display: flex; align-items: center; gap: 8px; padding: 10px 8px 10px 18px; background: var(--card); border-bottom: 1px solid var(--line); min-height: 62px; flex: none; }
.folha-h h2 { flex: 1; font-size: 19px; font-weight: 750; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folha-b { padding: 16px 18px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.folha-f { padding: 12px 18px calc(12px + var(--safe-b)); background: var(--card); border-top: 1px solid var(--line); display: flex; gap: 10px; flex: none; }
.folha-f .btn { flex: 1; }
.folha .puxador { width: 44px; height: 5px; border-radius: 99px; background: #d6d3cd; margin: 8px auto -2px; }
@keyframes subir { from { transform: translateY(40px); opacity: .4; } }
@keyframes aparecer { from { opacity: 0; } }
@media (min-width: 700px) {
  .folha-fundo { align-items: center; padding: 24px; }
  .folha { max-width: 580px; border-radius: 22px; max-height: 88vh; }
  .folha.larga { max-width: 860px; }
  .folha.cheia { max-width: 980px; height: auto; max-height: 92vh; border-radius: 22px; }
  .folha .puxador { display: none; }
}

/* toast */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--bottomnav) + var(--safe-b) + 14px); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
@media (min-width: 1000px) { .toasts { bottom: 24px; } }
.toast { background: #1c1917; color: #fff; padding: 13px 18px; border-radius: 14px; font-weight: 600; font-size: 15.5px; box-shadow: var(--sombra-2); max-width: 520px; display: flex; gap: 10px; align-items: center; animation: subir .2s ease-out; pointer-events: auto; }
.toast.erro { background: #991b1b; }
.toast.ok svg.i { color: #4ade80; }

/* ------------------------------------------------------------------ PDV (vender) */
.pdv { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.pdv-carrinho { display: none; }
@media (min-width: 1000px) {
  .pdv { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; }
  .pdv-carrinho { position: sticky; top: 80px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; }
}
@media (min-width: 1400px) { .pdv { grid-template-columns: minmax(0, 1fr) 440px; } }
.prod-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .prod-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 840px) { .prod-grade { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1000px) { .prod-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1250px) { .prod-grade { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prod {
  position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 8px; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px; transition: transform .06s, border-color .15s; user-select: none; min-width: 0;
}
.prod:active { transform: scale(.96); }
.prod.no-carrinho { border-color: var(--brand); background: var(--brand-soft-2); }
.prod-foto { aspect-ratio: 16 / 10; border-radius: 11px; background: #f1efea center/cover no-repeat; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff; overflow: hidden; }
.prod-nome { font-weight: 700; font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.prod-rodape { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.prod-preco { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prod-est { font-size: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.prod-est.baixo { color: var(--amber-ink); }
.prod-est.zero { color: var(--red); }
.prod-qtd { position: absolute; top: -8px; right: -8px; min-width: 32px; height: 32px; border-radius: 99px; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; padding: 0 8px; border: 3px solid var(--bg); font-size: 15px; animation: pop .2s; }
@keyframes pop { 50% { transform: scale(1.25); } }
.carrinho-itens { flex: 1; overflow-y: auto; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item .ci-nome { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.cart-item .ci-preco { font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.cart-item .ci-preco.alterado { color: var(--orange-ink); font-weight: 700; }
.cart-item .ci-total { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 16.5px; text-align: right; }
.cart-item .stepper button { width: 42px; height: 42px; }
.cart-item .stepper input { width: 42px; height: 42px; font-size: 17px; }
.cli-sel { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--card-2); cursor: pointer; width: 100%; text-align: left; }
.cli-sel.escolhido { border-style: solid; border-color: var(--line); background: #fff; }
.carrinho-total { padding: 14px 16px; border-top: 1px solid var(--line); background: var(--card-2); border-radius: 0 0 var(--r) var(--r); }
.barra-carrinho {
  position: fixed; left: 10px; right: 10px; bottom: calc(var(--bottomnav) + var(--safe-b) + 10px); z-index: 36;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 20px; background: var(--ink); color: #fff; box-shadow: var(--sombra-2);
  animation: subir .2s ease-out;
}
.barra-carrinho .bc-info { flex: 1; min-width: 0; }
.barra-carrinho .bc-info b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.barra-carrinho .bc-info small { color: #d6d3d1; font-size: 13.5px; }
.barra-carrinho .btn { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
@media (min-width: 1000px) { .barra-carrinho { display: none; } }

/* pagamento */
.formas-pg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .formas-pg { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.forma-pg { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-weight: 750; font-size: 15.5px; cursor: pointer; text-align: left; line-height: 1.2; }
.forma-pg .fp-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.forma-pg:active { transform: scale(.97); }
.forma-pg.usada { border-color: currentColor; }
.pg-linha { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.pg-linha .fp-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.falta { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; font-weight: 750; font-size: 17px; }
.falta.pendente { background: var(--amber-soft); color: var(--amber-ink); }
.falta.ok { background: var(--brand-soft); color: var(--brand-900); }
.falta.passou { background: var(--red-soft); color: var(--red-ink); }
.total-grande { text-align: center; padding: 10px 0 4px; }
.total-grande small { display: block; font-size: 14px; color: var(--ink-2); font-weight: 650; }
.total-grande b { font-size: 40px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.parcelas-ch { display: flex; gap: 8px; flex-wrap: wrap; }
.parcelas-ch .chip { min-width: 54px; justify-content: center; }
.sucesso { text-align: center; padding: 16px 0; }
.sucesso .s-ic { width: 92px; height: 92px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin: 4px auto 14px; animation: pop .35s; box-shadow: 0 10px 30px rgba(21,128,61,.35); }
.sucesso .s-ic svg.i { width: 50px; height: 50px; stroke-width: 3; }
.sucesso h2 { font-size: 26px; }
.troco-box { margin: 16px auto 0; max-width: 360px; background: var(--amber-soft); color: var(--amber-ink); border-radius: 16px; padding: 14px; font-weight: 700; }
.troco-box b { display: block; font-size: 34px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ calendário */
.cal-cab { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.cal-cab h2 { flex: 1; font-size: 21px; font-weight: 800; text-transform: capitalize; }
.cal { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sombra); }
.cal-sem { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--card-2); border-bottom: 1px solid var(--line); }
.cal-sem span { text-align: center; font-size: 12.5px; font-weight: 750; color: var(--ink-3); padding: 8px 0; text-transform: uppercase; }
.cal-grade { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dia { min-height: 62px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 4px 4px; background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; border-top: 0; border-left: 0; font: inherit; }
.cal-dia:nth-child(7n) { border-right: 0; }
.cal-dia .d-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.cal-dia.fora { background: var(--card-2); }
.cal-dia.fora .d-num { color: #c3bdb6; }
.cal-dia.hoje .d-num { background: var(--brand); color: #fff; }
.cal-dia.sel { background: #f0fdf4; box-shadow: inset 0 0 0 2px var(--brand); }
.cal-dia .pontos { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; max-width: 100%; }
.cal-dia .pontos i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.cal-dia .rotulos { display: none; width: 100%; flex-direction: column; gap: 2px; }
.cal-dia .rotulos span { font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 1px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
@media (min-width: 840px) {
  .cal-dia { min-height: 104px; align-items: stretch; padding: 6px; }
  .cal-dia .d-num { width: 28px; height: 28px; font-size: 14px; }
  .cal-dia .pontos { display: none; }
  .cal-dia .rotulos { display: flex; }
}
.cor-vendas { --c: #16a34a; --cs: #dcfce7; --ci: #14532d; }
.cor-recebimentos { --c: #0d9488; --cs: #ccfbf1; --ci: #134e4a; }
.cor-vencimentos { --c: #dc2626; --cs: #fee2e2; --ci: #991b1b; }
.cor-consignados { --c: #ea580c; --cs: #ffedd5; --ci: #9a3412; }
.cor-visitas { --c: #2563eb; --cs: #dbeafe; --ci: #1e3a8a; }
.cor-observacoes { --c: #a16207; --cs: #fef9c3; --ci: #713f12; }
.cor-lembretes { --c: #7c3aed; --cs: #ede9fe; --ci: #4c1d95; }
.pontos i[class^="cor-"] { background: var(--c); }
.rotulos span[class^="cor-"] { background: var(--cs); color: var(--ci); }
.leg { display: inline-flex; align-items: center; gap: 6px; }
.leg i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); display: inline-block; }
.agenda-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .agenda-layout { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } .agenda-dia { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; } }
.grupo-dia { margin-top: 14px; }
.grupo-dia h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--ci, var(--ink-2)); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.grupo-dia h4 i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.check-redondo { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; background: #fff; cursor: pointer; color: transparent; }
.check-redondo.feito { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ------------------------------------------------------------------ gráficos */
.barras { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 8px; }
.barras .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.barras .b i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: #bbf7d0; min-height: 3px; }
.barras .b.hoje i { background: var(--brand-600); }
.barras .b span { font-size: 11px; color: var(--ink-3); font-weight: 650; }
.hbarras { display: flex; flex-direction: column; gap: 10px; }
.hb .hb-top { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; margin-bottom: 4px; }
.hb .hb-top b { font-variant-numeric: tabular-nums; }
.hb .hb-trilho { height: 10px; border-radius: 99px; background: #eeece7; overflow: hidden; }
.hb .hb-trilho i { display: block; height: 100%; border-radius: 99px; }

/* ------------------------------------------------------------------ diversos */
.cab-cliente { display: flex; gap: 14px; align-items: center; }
.cab-cliente h2 { font-size: 22px; font-weight: 800; }
.acoes-rapidas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.acao-r { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--ink); text-align: center; }
.acao-r .ar-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.acao-r:active { transform: scale(.96); }
.linha-tempo { position: relative; padding-left: 26px; }
.linha-tempo::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.lt-item { position: relative; padding: 4px 0 14px; }
.lt-item::before { content: ""; position: absolute; left: -22px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--c, var(--brand)); }
.lt-item b { display: block; font-size: 15.5px; }
.lt-item small { color: var(--ink-3); }
.menu-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .menu-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.menu-item { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-weight: 750; font-size: 16px; min-height: 108px; box-shadow: var(--sombra); }
.menu-item .mi-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.menu-item small { display: block; font-size: 13px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }
.menu-item:active { transform: scale(.97); }
.ic-verde { background: var(--brand-soft); color: var(--brand-900); }
.ic-azul { background: var(--blue-soft); color: var(--blue-ink); }
.ic-laranja { background: var(--orange-soft); color: var(--orange-ink); }
.ic-roxo { background: var(--violet-soft); color: var(--violet-ink); }
.ic-vermelho { background: var(--red-soft); color: var(--red-ink); }
.ic-ambar { background: var(--amber-soft); color: var(--amber-ink); }
.ic-teal { background: var(--teal-soft); color: #115e59; }
.ic-cinza { background: #eeece7; color: var(--ink-2); }
.foto-campo { display: flex; gap: 14px; align-items: center; }
.foto-campo .fc-img { width: 96px; height: 96px; border-radius: 16px; background: #eeece7 center/cover no-repeat; display: grid; place-items: center; color: var(--ink-3); flex: none; border: 1px solid var(--line); }
.assinatura-box { border: 2px dashed var(--line-2); border-radius: 16px; background: #fff; position: relative; touch-action: none; }
.assinatura-box canvas { display: block; width: 100%; height: 200px; border-radius: 14px; }
.assinatura-box .ass-linha { position: absolute; left: 24px; right: 24px; bottom: 44px; border-bottom: 1.5px solid #d6d3cd; pointer-events: none; }
.assinatura-box .ass-dica { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 13px; color: var(--ink-3); pointer-events: none; }
.scanner-video { position: relative; background: #000; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4; max-height: 62vh; margin: 0 auto; width: 100%; }
@media (min-width: 700px) { .scanner-video { aspect-ratio: 4 / 3; } }
.scanner-video video { width: 100%; height: 100%; object-fit: cover; }
.scanner-video .mira { position: absolute; left: 10%; right: 10%; top: 38%; height: 24%; border: 3px solid rgba(255,255,255,.9); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.scanner-video .mira::after { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: #ef4444; box-shadow: 0 0 8px #ef4444; animation: varrer 1.6s ease-in-out infinite; }
@keyframes varrer { 0%, 100% { transform: translateY(-30px); } 50% { transform: translateY(30px); } }
.etapas { display: flex; gap: 6px; margin-bottom: 14px; }
.etapas span { flex: 1; height: 6px; border-radius: 99px; background: #e2dfd9; }
.etapas span.feita { background: var(--brand-600); }
.login-tela { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 10% -10%, #dcfce7 0%, transparent 60%), var(--bg); }
.login-caixa { width: 100%; max-width: 420px; }
.login-caixa .logo { width: 76px; height: 76px; border-radius: 22px; background: url(../img/icone-192.png) center/cover; box-shadow: var(--sombra-2); margin: 0 auto 16px; }
.login-caixa h1 { text-align: center; font-size: 26px; }
.login-caixa p.sub { text-align: center; color: var(--ink-2); margin: 6px 0 22px; }
.olho { position: relative; }
.olho .btn-ic { position: absolute; right: 3px; top: 3px; }
.saudacao h1 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.saudacao p { margin: 2px 0 0; color: var(--ink-2); }
@media (min-width: 700px) { .saudacao h1 { font-size: 30px; } }
.dia-nav { display: flex; align-items: center; gap: 8px; }
.dia-nav .input { max-width: 190px; text-align: center; font-weight: 700; }
.periodo { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.periodo .input { max-width: 170px; min-height: 44px; padding: 8px 12px; font-size: 15.5px; }
.preview-linhas { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.preview-linhas div { padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.preview-linhas div:last-child { border-bottom: 0; }
.diferente { background: var(--amber-soft) !important; }
@media print {
  .sidebar, .bottomnav, .topbar, .fab, .barra-carrinho, .acoes-fixas, .toasts { display: none !important; }
  body { background: #fff; }
}

.botoes-contato { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 559px) { .botoes-contato .btn { flex-direction: column; gap: 2px; min-height: 60px; font-size: 13.5px; padding: 6px 4px; } }
.acao-prod { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .acao-prod { display: flex; flex-wrap: wrap; } }
.acerto-cab { display: flex; gap: 12px; align-items: flex-start; }
.acerto-status { margin-top: 10px; display: inline-flex; padding: 6px 12px; border-radius: 10px; font-weight: 750; font-size: 15px; background: #eeece7; color: var(--ink-2); }
.acerto-status.vendeu { background: var(--brand-soft); color: var(--brand-900); }

.busca-vender { position: relative; z-index: 25; }
.busca-vender .input { min-height: 60px; font-size: 18px; border-radius: 18px; border-width: 2px; border-color: #cfe8d6; box-shadow: 0 4px 14px rgba(21,128,61,.08); background: #fff; }
.busca-vender .busca svg.i { color: var(--brand); width: 24px; height: 24px; }
.bv-res { margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sombra-2); overflow: hidden; }
.bv-res .item .btn-sm { flex: none; }
.bv-rodape { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 12px; background: var(--card-2); border-top: 1px solid var(--line); }
.bv-res .item-titulo { white-space: normal; line-height: 1.25; }
@media (max-width: 420px) { .bv-res .item .btn-primario span, .bv-res .item .btn-ic { } .bv-res .item { gap: 8px; padding: 10px 12px; } }
.prod-rodape { flex-wrap: wrap; row-gap: 0; }
.prod-est { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cart-item .stepper { justify-self: start; }
.acoes-fixas > .btn { flex: 1 1 auto; white-space: normal; line-height: 1.15; min-width: 0; }
.hb .hb-top b { white-space: nowrap; }
.hb .hb-top span { min-width: 0; }
@media (max-width: 559px) {
  .acoes-fixas { flex-wrap: wrap; }
  .acoes-fixas .btn-lg { min-height: 52px; font-size: 16.5px; padding: 0 14px; }
  .item .stepper button { width: 40px; height: 42px; }
  .item .stepper input { width: 40px; height: 42px; font-size: 17px; }
}
